Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
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
OAuth Token generation API for handling OAuth 2.0 Authentication Code Flow based on social-auth
We found that django-social-oauth-token demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.