drf-url-token-auth
Simple token based authentication using rest_framework. Clients should authenticate by passing the token key in the "?token=" HTTP parameter. The token parametter can be configured.
Quick start
- Add "gitlab_webhook" to INSTALLED_APPS:
INSTALLED_APPS = {
...
"drf_url_token_auth"
}
- Modify rest framework settings:
REST_FRAMEWORK = {
'DEFAULT_AUTHENTICATION_CLASSES': (
'drf_url_token_auth.authentication.UrlTokenAuthentication',
)
}
- Optionally, configure url parameter name (default: token)
DRF_URL_TOKEN_AUTH = {
'PARAM_NAME': 'token'
}
Dev notes: build package: python setup.py sdist install: pip install --user drf-url-token-auth/dist/drf-url-token-auth-01.tar.gz
Metadata
Release files for drf-url-token-auth 0.1
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 | |
|---|---|---|---|---|
| drf-url-token-auth-0.1.tar.gz | 2.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| drf_url_token_auth-0.1-py2-none-any.whl | Python 2 | none | any | Details |
Total release size: 5.9 kB
Release files / drf-url-token-auth-0.1.tar.gz
| Download URL | drf-url-token-auth-0.1.tar.gz |
|---|---|
| Size | 2.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
03e01a441387fd280e901bfe8c5e336be536d8d301aa153cdc788418a74a4292
|
|
BLAKE2b-256 checksum How to use checksums |
d3c41b10554614ff7e574420ea4eeb8c17c4092ed98319b3aef60e58b719e956
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.2
|
Release files / drf_url_token_auth-0.1-py2-none-any.whl
| Download URL | drf_url_token_auth-0.1-py2-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
b548851f7c23a9a7c6dfd7757ac34cb6e257d5717cf21ed003e74cec89359eb1
|
|
BLAKE2b-256 checksum How to use checksums |
90226f14b28c8bae5110aef546aa020912b5213e4681247b99700f438731287c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.2
|
Security for drf-url-token-auth 0.1
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.