Django sso client package for Kodland
Project description
После установки
Добавить приложение в список INSTALLED_APPS проекта:
INSTALLED_APPS = [
...
'sso_client'
]
Выполнить миграции:
python manage.py migrate
Добавить в settings.py следующие строки:
# settings for sso login
AUTH_USER_MODEL = 'sso_client.OauthUser'
AUTHENTICATION_BACKENDS = ('sso_client.backends.TokenAuth', )
SSO_URL = '{адрес sso сервера}/sso/'
Добавить в секцию middleware:
'sso_client.middleware.CheckTokenMiddleware',
'sso_client.middleware.AuthMiddleware'
Project details
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 kodland_sso_client-0.1.tar.gz
.
File metadata
- Download URL: kodland_sso_client-0.1.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6efa8a83cd6e09d20fcd08e2a88bce70d4038f0e404db2175f429190730f9fc8 |
|
MD5 | 01ed1eccfb1dc34002b775cc3c96c0c0 |
|
BLAKE2b-256 | 6fe8adce087db00c3fc74f08e5e7219d06511664f0f2161a9d2edf13d51d0443 |
File details
Details for the file kodland_sso_client-0.1-py3-none-any.whl
.
File metadata
- Download URL: kodland_sso_client-0.1-py3-none-any.whl
- Upload date:
- Size: 9.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1595cf6e9ca2c0062684a0bd5a9f019d8c6f3ad43f82d9a07a6106581041fa01 |
|
MD5 | 4c45fb32a13d6da6ba06bace66e06dec |
|
BLAKE2b-256 | b0b55aeb2a5212951addbfbaf349fde1440355c5a38c739f43b4d71c32c2b444 |