drf-url-token-auth-0.1
توضیحات
Authentication scheme for django rest framework that allow to use token in a url
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | drf-url-token-auth-0.1 |
| نام | drf-url-token-auth |
| نسخه کتابخانه | 0.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Develatio Technologies S.L. |
| ایمیل نویسنده | contacto@develat.io |
| آدرس صفحه اصلی | https://github.com/develatio/drf-url-token-auth/ |
| آدرس اینترنتی | https://pypi.org/project/drf-url-token-auth/ |
| مجوز | MIT |
# 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
1. Add "gitlab_webhook" to INSTALLED_APPS:
```
INSTALLED_APPS = {
...
"drf_url_token_auth"
}
```
2. Modify rest framework settings:
```
REST_FRAMEWORK = {
'DEFAULT_AUTHENTICATION_CLASSES': (
'drf_url_token_auth.authentication.UrlTokenAuthentication',
)
}
```
3. 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
نیازمندی
| مقدار | نام |
|---|---|
| >=2.0 | Django |
نحوه نصب
نصب پکیج whl drf-url-token-auth-0.1:
pip install drf-url-token-auth-0.1.whl
نصب پکیج tar.gz drf-url-token-auth-0.1:
pip install drf-url-token-auth-0.1.tar.gz