auth
pixel_client.auth ¶
KeyCloakAuth ¶
Bases: httpx.Auth
Auth class for KeyCloak authentication
Source code in src/pixel_client/auth.py
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | |
token_url
instance-attribute
¶
token_url = f"{keycloak_server_url}/realms/{realm}/protocol/openid-connect/token"
__init__ ¶
Source code in src/pixel_client/auth.py
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | |
auth_flow ¶
auth_flow(request)
Flow for the authentication.
Note
See httpx documentation on custom authentication schemes
Source code in src/pixel_client/auth.py
28 29 30 31 32 33 34 35 36 37 38 39 40 | |