Skip to main content

Module auth_api

Module auth_api 

Source
Expand description

Stable wire contracts for admin login and browser sessions.

Structs§

AdminAuditEventResponse
AdminSessionResponse
Public metadata for one newly created or currently authenticated session.
AgentCredentialMutationResponse
The exact durable outcome of an agent-credential mutation.
AgentCredentialResponse
CreateLoginChallengeRequest
Requests one short-lived proof challenge for a human login provider.
CreateLoginChallengeResponse
One short-lived challenge. The raw value is returned once and stored only as a digest.
CreateUserRequest
Creates one account and its initial credentials atomically.
ExpectedVersionRequest
ListAdminAuditEventsResponse
ListAgentCredentialsResponse
ListUsersResponse
RegisterAgentCredentialRequest
ReplaceAgentScopesRequest
ReplaceUserRolesRequest
RevokeAdminSessionResponse
Confirmation that the current browser session was revoked.
SecretString
A serialized secret that is redacted from diagnostics and erased on drop.
SetUserStatusRequest
UserMutationResponse
The exact durable outcome of a user mutation.
UserResponse
Full non-secret account state.
UserSummaryResponse
One account summary returned by the bounded identity listing.

Enums§

AuditOutcome
AuditPrincipalResponse
CreateAdminSessionRequest
A human proof that can create one opaque server-side browser session.
HumanCredentialInput
A human credential supplied while creating or updating an account.
HumanCredentialResponse
Non-secret metadata for one human login credential.
PutHumanCredentialRequest
Creates or replaces one provider-specific human credential.

Constants§

ADMIN_AGENT_CREDENTIALS_PATH
ADMIN_AGENT_CREDENTIAL_PATH
ADMIN_AGENT_SCOPES_PATH
ADMIN_AUDIT_EVENTS_PATH
ADMIN_SESSIONS_PATH
ADMIN_USERS_PATH
ADMIN_USER_CREDENTIAL_PATH
ADMIN_USER_PATH
ADMIN_USER_ROLES_PATH
ADMIN_USER_STATUS_PATH
CSRF_COOKIE_NAME
CSRF_HEADER_NAME
CURRENT_ADMIN_SESSION_PATH
DEFAULT_IDENTITY_PAGE_LIMIT
LOGIN_CHALLENGES_PATH
MAX_IDENTITY_PAGE_LIMIT
SESSION_COOKIE_NAME