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 QottoAuthService class allows to interact with a qotto-auth GraphQL server.
from qottoauth import *
# Initialize the service
qotto_auth_service = QottoAuthService(QottoAuthGqlApi(QOTTO_AUTH_URL))
# Register this application
application = qotto_auth_service.register_application(
name=APPLICATION_NAME,
description=APPLICATION_DESCRIPTION,
)
# Register permission
permission_1 = qotto_auth_service.register_permission(
name=PERMISSION_1_NAME,
description=PERMISSION_1_DESCRIPTION,
application=application,
)
# Fetch current user or member
def handle(request)
actor = qotto_auth_service.actor(
token=request.COOKIES.get(TOKEN_COOKIE_NAME),
secret=request.COOKIES.get(SECRET_COOKIE_NAME),
)
if qotto_auth_service.is_authorized(
actor=actor,
permission=permission_1,
):
# Do something
else:
# Do something else
You can instantiate a QottoAuthService with a QottoAuthTestApi for testing purposes. In that case you might want to
extend the test api class if you extended service using direct api calls.
Metadata
Release files for qotto-auth-client 2.2.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| qotto_auth_client-2.2.4.tar.gz | 18.9 kB | Without provenance | Details for qotto_auth_client-2.2.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| qotto_auth_client-2.2.4-py3-none-any.whl | Python 3 | none | any | Details for qotto_auth_client-2.2.4-py3-none-any.whl |
Total release size: 40.5 kB
Release files / qotto_auth_client-2.2.4.tar.gz
| Download URL | qotto_auth_client-2.2.4.tar.gz |
|---|---|
| Size | 18.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
591e9c40c309906e571a6f471a71045870bdaf50fb0437e2540c94c227b063c6
|
|
BLAKE2b-256 checksum How to use checksums |
f53b623be8666343343f2f4298c68548571c2e1ca87ade884e958f6c12918c61
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.10.4 Linux/5.14.0-1050-oem
|
Release files / qotto_auth_client-2.2.4-py3-none-any.whl
| Download URL | qotto_auth_client-2.2.4-py3-none-any.whl |
|---|---|
| Size | 21.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fd42699f07bc88a046c979709a45bd3e3a74d789cf1f768e9abf4fa34f3edfa6
|
|
BLAKE2b-256 checksum How to use checksums |
4850808a30c0a177f6c258046e5fe62d8df73f889f3502efe224101b6f278dbd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.10.4 Linux/5.14.0-1050-oem
|
Security for qotto-auth-client 2.2.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.