Module auth

Source

Structsยง

AuthSessionHandle
A handle to an authentication session.
AuthSessionIdent ๐Ÿ”’
Authenticator
Facilitates authenticating users via Frontegg, and verifying returned JWTs.
AuthenticatorConfig
Configures an Authenticator.
AuthenticatorInner ๐Ÿ”’
ClaimMetadata
Metadata embedded in a Frontegg JWT.
Claims
The raw claims encoded in a Frontegg access token.
ValidatedClaims
Claims that have been validated by Authenticator::validate_access_token.

Enumsยง

AuthSession ๐Ÿ”’
ClaimTokenType
The type of a JWT issued by Frontegg.

Constantsยง

DEFAULT_REFRESH_DROP_FACTOR
If a session is dropped within DEFAULT_REFRESH_DROP_FACTOR * valid_for seconds of an authentication token expiring, then weโ€™ll continue to refresh the auth token, with the assumption that a new instance of this session will be started soon.
DEFAULT_REFRESH_DROP_LRU_CACHE_SIZE
SAFETY: Value is known to be non-zero.
MAX_USER_NAME_LENGTH
The maximum length of a user name.

Functionsยง

bool_as_str ๐Ÿ”’
is_email ๐Ÿ”’
Reports whether a username is an email address.
validate_user ๐Ÿ”’

Type Aliasesยง

AuthFuture ๐Ÿ”’