
Security News
NVD Quietly Sweeps 100K+ CVEs Into a “Deferred” Black Hole
NVD now marks all pre-2018 CVEs as "Deferred," signaling it will no longer enrich older vulnerabilities, further eroding trust in its data.
django-social-oauth-token
Advanced tools
OAuth Token generation API for handling OAuth 2.0 Authentication Code Flow based on social-auth
Installation • Contributing • How To Use • License
OAuthToken generation API for handling OAuth 2.0 Authentication Code Flow based on social-auth
$ poetry add django-social-oauth-token
# settings.py
...
INSTALLED_APPS = (
...
'social_oauth_token',
)
...
urlpatterns
in your main urls
file.# urls.py
urlpatterns = [
...
path("social_oauth_token/", include("social_oauth_token.urls", namespace="social_oauth_token")),
...
]
In order to verify the Authorization Code sent by the user and replace it with your own OAuth Access Token, send a POST request to the token/<backend>/
endpoint with client_id
and code
to receive the token.
The POST request parameters:
client_id # OAuth Client ID
code # Authorization Code
The JSON response:
{
"access_token": <access_token>,
"expires_in": <expires_in>,
"token_type": <token_type>,
"refresh_token": <refresh_token>,
}
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
FAQs
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
NVD now marks all pre-2018 CVEs as "Deferred," signaling it will no longer enrich older vulnerabilities, further eroding trust in its data.
Research
Security News
Lazarus-linked threat actors expand their npm malware campaign with new RAT loaders, hex obfuscation, and over 5,600 downloads across 11 packages.
Security News
Safari 18.4 adds support for Iterator Helpers and two other TC39 JavaScript features, bringing full cross-browser coverage to key parts of the ECMAScript spec.