Skip to main content

Crate soaprs_auth

Crate soaprs_auth 

Source
Expand description

Protocol-neutral authentication and authorization contracts.

Credential transport, cryptography, token formats, persistence, and web framework middleware belong to dedicated adapter crates.

Structs§

Authentication
Successful authentication through one named strategy.
AuthenticationRegistry
Deterministic strategy router without runtime output downcasting.
AuthorizationName
Stable authentication strategy, authorization policy, role, or permission name.
Credential
One presented credential routed to a named authentication strategy.
DefaultAuthorizationEvaluator
Evaluates every built-in authorization policy without I/O.
PrincipalId
Opaque authenticated principal identity.
SecretString
Opaque secret value whose debug and display representations are redacted.
Session
Server-side authenticated session value.
SessionId
Opaque session identity safe to transport as a cookie value.
StandardPrincipal
Basic principal implementation suitable for role/permission services.
TokenPair
Access and refresh credentials issued together.

Enums§

AuthorizationDecision
Authorization result that can defer one named policy to application code.
AuthorizationFailure
Safe reason for a denied authorization decision.
AuthorizationPolicy
Declarative authentication and authorization requirement.
CredentialKind
Transport-independent credential category.

Traits§

AuthenticationStrategy
Named credential authenticator registered at the application composition root.
Authenticator
Verifies one typed credential and returns an authenticated principal.
Authorizer
Asynchronous application authorization port for contextual or named policies.
Principal
Identity and grants consumed by portable authorization policies.
SessionStore
Persistence port for server-side sessions.
TokenService
Token issue, rotation, and revocation application port.