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/'
LOGIN_URL = '{адрес на sso сервере для логина}'
# корневой домен для cookies
SESSION_COOKIE_DOMAIN = '.local'
Добавить в секцию 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.2.tar.gz
.
File metadata
- Download URL: kodland_sso_client-0.1.2.tar.gz
- Upload date:
- Size: 4.3 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 | 630ea4592829c4ba539d2c8de8f0948c42199fe2af801a12a894a8377c371081 |
|
MD5 | 951b0bda5d05868b5cdf9ffb186f65cc |
|
BLAKE2b-256 | b7a493cd12eb1824aedbb451ea8bde198c1c2a1fcfe855f7cf56deddb3fc2f50 |
File details
Details for the file kodland_sso_client-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: kodland_sso_client-0.1.2-py3-none-any.whl
- Upload date:
- Size: 8.5 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 | d2c2e69a73be17d4f987a7cb184d92f67cf0719b2a0c2c1455a74a0457892ecf |
|
MD5 | 15a7c15a0d224f13fbf8e830739d8239 |
|
BLAKE2b-256 | a6b32cfbc35f7e059b08289d67b81bf35bc2e87c286d4d76a4d1cbb70ef4a640 |