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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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