Skip to main content

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

kodland_sso_client-0.1.3.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

kodland_sso_client-0.1.3-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file kodland_sso_client-0.1.3.tar.gz.

File metadata

  • Download URL: kodland_sso_client-0.1.3.tar.gz
  • Upload date:
  • Size: 4.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_client-0.1.3.tar.gz
Algorithm Hash digest
SHA256 c1af22189a0e9b67e9e838b42c5690d88c44b7b54d9c1b27177365f446677bb0
MD5 e6f426ff5485eea46dc0afbb14365f65
BLAKE2b-256 32cebd640496cefdf23a94b36d7b54f82ea2e97a467e1842b798280a1cdad0d8

See more details on using hashes here.

File details

Details for the file kodland_sso_client-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: kodland_sso_client-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 8.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_client-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9e97684446c6c0dc1afbfa0437f340ed0f430986f10a40e8e716903e9901e7a8
MD5 5c5fc7dbd9f1af9c4c49597933e7896f
BLAKE2b-256 8d438da46f3e7c62bec98cfe9d88ecf02a54c832b3882206145bbd5bf11689d5

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