Re-exportsยง
pub use self::providers::ProviderId;pub use self::server::Server;pub use self::sessions::CODE_VERIFIER_LENGTH;pub use self::sessions::SESSION_ID_LENGTH;pub use self::sessions::Session;pub use self::sessions::SessionId;pub use self::token_response::TokenResponse;pub use self::user_info::UserInfo;
Modulesยง
Structsยง
Constantsยง
- DEVICE_
RC_ ๐BURST - DEVICE_
RC_ ๐PER_ SECOND - Always-on throttle for the RFC 8628 device user-code endpoints. The
user_codeis low-entropy by design (ยง6.1), so ยง5.1 requires bounding guesses regardless of the optionaloidc_rc_*knobs; the burst stays generous for the one code a real user enters. - RATELIMIT_
MAP_ ๐CAP - Cap on the rate-limit table; fully refilled buckets are pruned past it.
Functionsยง
- check_
bucket ๐ - identity_
issuer ๐ - Issuer string used as input to the identity hash. Pinned per-brand for providers whose published issuer has changed under us, so existing account associations survive the change.
- unique_
id - Generate a unique-id string determined by the combination of
ProviderandSessioninstances. - unique_
id_ iss - Generate a unique-id string determined by the combination of
issuer_urlandSessioninstance. - unique_
id_ ๐iss_ parts - unique_
id_ iss_ sub - Generate a unique-id string determined by the
issuer_urland thesubstrings directly. - unique_
id_ ๐parts - unique_
id_ sub - Generate a unique-id string determined by the combination of
Providerinstance andsubstring. - unique_
id_ ๐sub_ parts
Type Aliasesยง
- Ratelimiter ๐
- Per-client-IP token-bucket table: last-refill instant and remaining tokens.