Qotto/QottoAuthClient
Project description
Qotto Auth Client
The python package qotto-auth-client
is a client for the API qotto-auth
which will soon be open sourced.
It allows to manage a scoped permission and authentication system.
More information coming soon...
Quickstart
The QottoAuthApi
class allows to interact with a qotto-auth
GraphQL server.
from qottoauth import (
QottoAuthService,
QottoAuthApi,
QottoAuthGrapheneApi,
QottoAuthTestApi,
)
# Create a QottoAuthApi instance
api: QottoAuthApi
if TEST:
# for offline testing
api = QottoAuthTestApi()
else:
# qotto-auth server running
api = QottoAuthGrapheneApi(
url=QOTTO_AUTH_URL,
)
# Create a QottoAuthService instance
service = QottoAuthService(
api=api,
)
# Register this application
service.register_application(
application_name=APPLICATION_NAME,
application_description=APPLICATION_DESCRIPTION,
)
# ...
You can extend the QottoAuthService
class to add your own business logic.
In the current version (1.0.1), QottoAuthTestApi
does not provide all queries and mutations, so you might need to
extend the class if you need to test beahviour depending on these queries and mutations.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
qotto-auth-client-1.1.3.tar.gz
(13.4 kB
view hashes)
Built Distribution
Close
Hashes for qotto_auth_client-1.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb4ac4cf6ed54710e0ea8b1cbb85f867e239438d6488a00be0f010311d655e8a |
|
MD5 | 1d5f0ed75e914d4aaafe229e9c2add9f |
|
BLAKE2b-256 | d623f018115f10b15e5d96da35b5d74991d845461c1840d19c72bbae2aab79a8 |