Skip to main content

Crate oidc_caep_risc

Crate oidc_caep_risc 

Source

Structs§

Access
AuthorizeOptions
Dpop
An ES256 (P-256) proof key and the nonces servers have handed out.
EndSessionOptions
Event
The event-type map. Built once per call; tests compare a few keys.
Login
A completed sign-in. Tokens stay in this process.
MemorySessionStore
The default session store: this process’s memory, BOUNDED.
OidcError
Every failure this crate reports. code is config, discovery, protocol, validation, signature, or ssf.
ReceiverHealth
What a receiver can say about its poll stream, for a health endpoint (SignalsReceiver::health). Times are seconds since the Unix epoch. No token, no event and no subject is ever kept here.
ReceiverOptions
RelyingParty
A confidential OpenID Connect client.
SessionStoreStats
What a MemorySessionStore holds and has dropped, for a status page.
SignalEvent
SignalsReceiver
Finds or creates this application’s poll stream and turns events into local sessions.
Transaction
The sign-in kept until the browser returns.

Constants§

DEFAULT_SCOPES
DEFAULT_SESSION_MAX_ENTRIES
The most sign-ins MemorySessionStore::default() keeps (sessionMaxEntries).
DEFAULT_SESSION_TTL_SEC
How long MemorySessionStore::default() keeps a sign-in after it was last written (sessionTtlSec): 24 hours.
DPOP_ALG
The one algorithm this crate signs DPoP proofs with.
SESSION_REFRESH_MARGIN_SEC
A cached access token is used while it has more than this many seconds left.

Traits§

SessionStore
Where completed sign-ins are kept, by a session identifier the application chooses. The default is MemorySessionStore; a store shared by several processes implements this.

Functions§

apply_defaults
The defaults and checks every relying party gets, whether its configuration came from a file (resolve_config) or was handed to RelyingParty::create directly: par and dpop (auto), clockToleranceSec (30), maxIdTokenAgeSec (600), idTokenSigningAlgs (["RS256"]), requireIdTokenTypAndAtHash (true), sessionMaxEntries (10000) and sessionTtlSec (86400, 0 for no expiry) for the default session store, and the redirect URI rule (https, or http on localhost, 127.0.0.1, or [::1]).
b64url_decode
b64url_encode
check_redirect
A redirect URI is https, or http on a loopback host (localhost, 127.0.0.1, [::1]). allowInsecure does not relax this; it is for a development provider’s endpoints.
code_challenge_s256
RFC 7636 S256: base64url(SHA-256(verifier)), with no padding.
hash_claim
The left half of the digest the algorithm names, base64url, no padding.
is_loopback
localhost, 127.0.0.1, or [::1].
random_token
32 random bytes, base64url. A PKCE verifier and a state or nonce.
read_config_file
resolve_config
Reads a configuration object and fills the defaults. signals is omitted when CAEP and RISC are on, and present as false when they are off.
subject_of
Reads an event’s subject. A complex subject’s user is the person and its session the provider session.
validate_id_token
verify_compact_jws
Verifies a compact JWS against the keys of a JWKS. The key comes from the JWKS, never from the token.

Type Aliases§

JsonMap
Resolved