Skip to main content

Crate arminius_lib_authentication

Crate arminius_lib_authentication 

Source
Expand description

Functionality for handling authentication of clients

Modulesยง

test_utils
Utilities when testing, that allow doing insecure things to authentication

Structsยง

AuthenticatedClaims
The extractor to get the Claims of a request. Implements FromRequestParts, see client_component::account_data::global_account_data_set for an example
Claims ๐Ÿ”’
The claims contained in an authenticated token.
SessionInfo
The session information an authenticated token is mapped to.

Enumsยง

AuthError
Error type for authentication errors
JWKError
Error type for authentication errors

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