Client library for my custom auth service
Project description
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
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
Built Distribution
Close
Hashes for ricks-auth-service-client-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | aef597a63ae4437c659287ca6f4780ea4c6dd9bf605c72a44422bdf371f03f1e |
|
MD5 | 69ccc4e97834645ee438ea56d4bfb7f7 |
|
BLAKE2b-256 | 8a85ce7bebd0f90aabbafbd0c5c02bfef3e0a4d7372cfb603afb8364b203b102 |
Close
Hashes for ricks_auth_service_client-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba24f3b5f643b2c531bc1d73a2545d1f76297f7c4f195f46a3fe061d8197c211 |
|
MD5 | ab81dd1806c5270c767a35f512f7307b |
|
BLAKE2b-256 | 1d9f44f6ec1a0293e710025cad6172ba013d3e136ae39f908646a33e72c148d0 |