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
Built Distribution
Close
Hashes for django_cbias_auth-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a93604e241400008cd845481c0f92184abdb1188bc7c17604dd3fd477e9a78be |
|
MD5 | f42bd8bf67b6e9a69bb9cf1b9884a31d |
|
BLAKE2b-256 | e9dd4dcaa3d3c9b70db10c16ef052c95ad46d62bb60973c6bd1b5ab423e85696 |