Skip to main content

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


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.3.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

kodland_sso_server-0.2.3-py3-none-any.whl (13.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: kodland_sso_server-0.2.3.tar.gz
  • Upload date:
  • Size: 5.8 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.3.tar.gz
Algorithm Hash digest
SHA256 420ba60e7cc3a0b3596f946aeae43b5f6f3a55f7a140b259577b75a7a290e926
MD5 9085bb18bd92abf7453640d3382765e8
BLAKE2b-256 22cdbe399176d6e81fbc55a55cc012effadb1b5dc82399de8c8b5d26323871e9

See more details on using hashes here.

File details

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

File metadata

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

Hashes for kodland_sso_server-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 59b90b980048bbd18f5d95970c3d8b44a4fe8dc2c7922815ec8c981421efa411
MD5 f86e017691a32477022585cc940f20c1
BLAKE2b-256 b8f890782f562b42c6d7528b959389f71fa92d9e01ae981d708a79d14c1adfaf

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