Skip to main content

Auth library via https://cbias.ru

Project description

Django-Cbias-Auth

Библиотека для авторизации на портале https://cbuas.ru.

Установка

# via pip
pip install django_cbias_auth
# via poetry
poetry add django_cbias_auth

Настройки

В файл settings.py добавить:

EXTERNAL_URLS = {
    'auth_cbias': 'www.cbias.ru/sso_app/remote_auth.spf?uid=%uid&ris=%system'
}
  • %uid - идентификатор пользователя
  • %system - идентификатор системы

Схема

mutation Auth($uid: String!, $clientId: String!, $clientSecret: String!) {
  auth(payload: { uid: $uid, clientId: $clientId, clientSecret: $clientSecret }) {
    success
    errors {
      field
      messages
      __typename
    }
    __typename
  }
}

Создание приложения

python manage.py createoauthapp 'Авторизация через cbias.ru' 

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

django_cbias_auth-0.1.3.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

django_cbias_auth-0.1.3-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django_cbias_auth-0.1.3.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for django_cbias_auth-0.1.3.tar.gz
Algorithm Hash digest
SHA256 5b6b39277c2ced0f8cd44c84311dd0ccb386cf960f7db409af24d6f3fca05b59
MD5 b5462b2103a92ab62f645b33c795f387
BLAKE2b-256 ff25c86b6d8d42e03148ab2dfa3163d2d0683e93ebbce972f26c76aba0fcd8a3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: django_cbias_auth-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 11.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for django_cbias_auth-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b65a5fa8a6d08f3d1c8a327437b9b152ceaadaa38ebe3f1404c7bc4f6216e70f
MD5 e2483f5c7fd543e70d351544df95d7e8
BLAKE2b-256 16d7f31044727cd5f31627855c6281356837a49613714f1c545ea7898e517622

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