Expand description
Functionality for handling authentication of clients
Modulesยง
- test_
utils - Utilities when testing, that allow doing insecure things to authentication
Structsยง
- Authenticated
Claims - The extractor to get the
Claimsof a request. Implements FromRequestParts, seeclient_component::account_data::global_account_data_setfor an example - Claims ๐
- The claims contained in an authenticated token.
- Session
Info - The session information an authenticated token is mapped to.
Enumsยง
Constantsยง
- CANNOT_
PROCESS_ ๐JWK - Error message for failed JWK processing
- CANNOT_
PROCESS_ ๐JWK_ ALGORITHM - Error message for failed JWK algorithm processing
- OIDC_
JWKS_ ๐REQUEST_ FAILED - Error message for failed OIDC JWK request
- OIDC_
JWKS_ ๐RESPONSE_ ERROR - Error message for failed OIDC JWK response
- OIDC_
WELL_ ๐KNOWN_ REQUEST_ FAILED - Error message for failed OIDC well known request
- OIDC_
WELL_ ๐KNOWN_ RESPONSE_ ERROR - Error message for failed OIDC well known response
Functionsยง
- check_
user_ is_ admin - Returns true if the user is an admin
- fetch_
jwk_ ๐set - Retrieves the JWK set from the OIDC provider.
- get_jwk ๐
- Retrieves the JWK from the OIDC provider, if configured. Alternatively, use an internal JWK set for testing.
- json_
convert ๐ - Converts a value through a JSON round-trip