Skip to main content

Django sso server package for Kodland

Project description

После установки

Добавить приложения в список INSTALLED_APPS в settings.py

INSTALLED_APPS = [
    ...
    'rest_framework',
    'rest_framework_swagger',
    'sso_server'
]

Добавить в settings.py переменную, содержащую корневой домен для установки cookies

DOMAIN = '.local'

Добавить в settings.py следующую строку:

REST_FRAMEWORK = { 'DEFAULT_SCHEMA_CLASS': 'rest_framework.schemas.coreapi.AutoSchema' }

Выполнить миграции:

python manage.py migrate

Добавить в settings.py в middleware: 'sso_server.middleware.UserCookieMiddleWare'

Добавить в urls.py следующий маршрут:

urlpatterns = [
    ...
    path('sso/', include('sso_server.urls'))
]

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

kodland_sso_server-0.2.4.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

kodland_sso_server-0.2.4-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

Details for the file kodland_sso_server-0.2.4.tar.gz.

File metadata

  • Download URL: kodland_sso_server-0.2.4.tar.gz
  • Upload date:
  • Size: 6.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

Hashes for kodland_sso_server-0.2.4.tar.gz
Algorithm Hash digest
SHA256 71bc0f9a20ce96cee89c1d537064538ff10524b67f9464db7735d3ea52ebb1ec
MD5 ab9da58670e94bf1fa0b92de94f6202a
BLAKE2b-256 ba8d675f91b55d77b15270cf3aaab2066ac191762919a7483e2b19e18ba19a31

See more details on using hashes here.

File details

Details for the file kodland_sso_server-0.2.4-py3-none-any.whl.

File metadata

  • Download URL: kodland_sso_server-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 13.0 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

Hashes for kodland_sso_server-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f071f2f6a042ca68dbc06605ea7ee3c44933780eefb762e2978f810c9f56e0bb
MD5 7a181f20053efe6f3a345978e178e4db
BLAKE2b-256 eff81bd044b2dd726136991f56ea0db2eb3f8ea52560481648ff8dbf4cc473b2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page