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

Uploaded Source

Built Distribution

kodland_sso_server-0.2.2-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

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

Hashes for kodland_sso_server-0.2.2.tar.gz
Algorithm Hash digest
SHA256 2befcbe36e17db8a50bd5ed51ee60800df5e0a8de9dcd22b8cd5c16eaada0525
MD5 74b915726cc741fcc877b1f844b6bfa5
BLAKE2b-256 6e507ef5ca40adac2567f5b37dcb40af6df60b9a39f5047fe7e49c2976d09f3a

See more details on using hashes here.

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

Hashes for kodland_sso_server-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 732c3dd1cb045278c2379257743587257587b5d5b29258c418ac7a81c2a0bf2d
MD5 74aa8bdc89ec0ecda59ca89aa83d5791
BLAKE2b-256 00862b610d17aad6cae506baac79dbf6b8fa84c570580c9168f4d540e6884dbf

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