ricks_auth_service_client
An async python client for my custom auth microservice.
Routes Covered
initialization
from ricks_auth_service_client import AuthClient
auth_client = AuthClient(
host="https://auth.example.com",
app_id="37f9a26d-03c8-4b7c-86ad-132bb82e8e38"
)
/otp/request/
Start otp authentication flow with server.
result = await auth_client.authenticate(
"test@example.com", flow="otp"
)
/otp/confirm/
Complete authentication with email and generated code.
result = await auth_client.submit_code("test@example.com", "12345678")
/token/verify/
Send idToken to server for verification.
result = await auth_client.verify_token_remote(token_submitted_by_client)
/token/refresh/
Request a new ID Token from the server using a refresh token
new_token = await auth_client.refresh(refresh_token_from_client)
/app/
Get more info about this app from the server.
info = await auth_client.app_info()
/magic/request/
Start authentication using magic link flow.
result = await auth_client.authenticate(
"test@example.com", flow="magic"
)
Local Verification
Verify and decode an ID Token on directly in the app without having to call out every time
result = await auth_client.verify(id_token_from_client)
# {"headers": {"alg": "ES256", "type": "JWT"}, "claims": {"sub": "user@email.com", "exp": "test@example.com"}
# etc.
Metadata
Release files for ricks-auth-service-client 0.1.2
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 |
|---|---|---|---|---|
| ricks-auth-service-client-0.1.2.tar.gz | 3.7 kB | Without provenance | Details for ricks-auth-service-client-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ricks_auth_service_client-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for ricks_auth_service_client-0.1.2-py3-none-any.whl |
Total release size: 7.5 kB
Release files / ricks-auth-service-client-0.1.2.tar.gz
| Download URL | ricks-auth-service-client-0.1.2.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a27855a67cd245e441cd2ab3dd604f4738417750245727e5963dbef36e5982d0
|
|
BLAKE2b-256 checksum How to use checksums |
acd5f7eeac22604c3d7612e32f9159019896b590cfcc72d86a912f59bf733c54
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.7 CPython/3.9.6 Darwin/20.6.0
|
Release files / ricks_auth_service_client-0.1.2-py3-none-any.whl
| Download URL | ricks_auth_service_client-0.1.2-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fcee8be9d6693481f6ebafde1ad73f052178697f0232e29af2e9acfa84f7fcd8
|
|
BLAKE2b-256 checksum How to use checksums |
e2a2bc5e9053b1914eeba274f6b21407cf9d7525fd859b7f5921d013f3ed271b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.7 CPython/3.9.6 Darwin/20.6.0
|
Security for ricks-auth-service-client 0.1.2
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.