Django sso server package for Kodland
Project description
После установки
Добавить приложения в список INSTALLED_APPS в settings.py
INSTALLED_APPS = [
...
'rest_framework',
'sso_server'
]
Добавить в settings.py переменную, содержащую корневой домен для установки cookies
DOMAIN = '.local'
Выполнить миграции:
python manage.py migrate
Добавить в settings.py в middleware:
'sso_server.middleware.UserCookieMiddleWare'
Добавить в urls.py следующий маршрут:
urlpatterns = [
...
path('sso/', include('sso_server.urls'))
]
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 kodland_sso_server-0.2.2.tar.gz
.
File metadata
- Download URL: kodland_sso_server-0.2.2.tar.gz
- Upload date:
- Size: 5.7 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 | 2befcbe36e17db8a50bd5ed51ee60800df5e0a8de9dcd22b8cd5c16eaada0525 |
|
MD5 | 74b915726cc741fcc877b1f844b6bfa5 |
|
BLAKE2b-256 | 6e507ef5ca40adac2567f5b37dcb40af6df60b9a39f5047fe7e49c2976d09f3a |
File details
Details for the file kodland_sso_server-0.2.2-py3-none-any.whl
.
File metadata
- Download URL: kodland_sso_server-0.2.2-py3-none-any.whl
- Upload date:
- Size: 11.3 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 | 732c3dd1cb045278c2379257743587257587b5d5b29258c418ac7a81c2a0bf2d |
|
MD5 | 74aa8bdc89ec0ecda59ca89aa83d5791 |
|
BLAKE2b-256 | 00862b610d17aad6cae506baac79dbf6b8fa84c570580c9168f4d540e6884dbf |