Authentication scheme for django rest framework that allow to use token in a url
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file drf-url-token-auth-0.1.tar.gz
.
File metadata
- Download URL: drf-url-token-auth-0.1.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 03e01a441387fd280e901bfe8c5e336be536d8d301aa153cdc788418a74a4292 |
|
MD5 | 679d17b2514442d2e53cb946dbf4a404 |
|
BLAKE2b-256 | d3c41b10554614ff7e574420ea4eeb8c17c4092ed98319b3aef60e58b719e956 |
File details
Details for the file drf_url_token_auth-0.1-py2-none-any.whl
.
File metadata
- Download URL: drf_url_token_auth-0.1-py2-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 2
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b548851f7c23a9a7c6dfd7757ac34cb6e257d5717cf21ed003e74cec89359eb1 |
|
MD5 | fdfe03c794e1a4c09e889991f42f0b0b |
|
BLAKE2b-256 | 90226f14b28c8bae5110aef546aa020912b5213e4681247b99700f438731287c |