django-social-oauth-token
Installation • Contributing • How To Use • License
OAuthToken generation API for handling OAuth 2.0 Authentication Code Flow based on social-auth
Installation
$ poetry add django-social-oauth-token
- Then register 'social_oauth_token', in the 'INSTALLED_APPS' section of your project's settings.
# settings.py
...
INSTALLED_APPS = (
...
'social_oauth_token',
)
...
- Include the
urlpatternsin your mainurlsfile.
# urls.py
urlpatterns = [
...
path("social_oauth_token/", include("social_oauth_token.urls", namespace="social_oauth_token")),
...
]
How To Use
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>,
}
Contributing
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.
License
Metadata
Release files for django-social-oauth-token 2.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django_social_oauth_token-2.2.0.tar.gz | 4.7 kB | Without provenance | Details for django_social_oauth_token-2.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_social_oauth_token-2.2.0-py3-none-any.whl | Python 3 | none | any | Details for django_social_oauth_token-2.2.0-py3-none-any.whl |
Total release size: 11.7 kB
Security for django-social-oauth-token 2.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.