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/'

Добавить в секцию 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.1.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

kodland_sso_client-0.1.1-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: kodland_sso_client-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 aba216fb32f87b423a8228bee9ebcb9e8f7d70be340c8e93025d92b83306bded
MD5 5e8e19c6b7bab550c3df8e6eeabf741c
BLAKE2b-256 8ac478f357924cb3c3db62c6b3862e6b8a97dcaedebd2102464a19d4d3f1b029

See more details on using hashes here.

File details

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

File metadata

  • Download URL: kodland_sso_client-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 8.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_client-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dc1af1f49002103c73d17ff1da6b5b9b650468eacaaacbb79759771c33bfc4fa
MD5 a2e2718d5a240dccf2d77efbd204023e
BLAKE2b-256 11ed78191f86eacebf64a777f17d53d3611d3b9965f52ccc0ed03d3367ca550b

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