Modules§
- anthropic_
token - gemini_
oauth - Google/Gemini OAuth2 authentication flow.
- oauth_
common - Common OAuth2 utilities shared across model_providers.
- openai_
oauth - profiles
Structs§
- Anthropic
Flow - Auth
Flow Context - Shared context for auth-flow trait methods. Carries the runtime dependencies each flow needs (config for OAuth client creds, auth service for token storage, http client for OAuth round-trips).
- Auth
Service - Gemini
Flow - Openai
Codex Flow - PendingO
Auth Login - Generic pending OAuth login state, shared across model providers.
Enums§
- Auth
Provider - Auth-flow provider — the finite set the
auth login/auth paste-redirect/auth statuscommands dispatch on. Synonym collapse and canonical-name rendering are both serde-driven via therename_all+aliasattributes, so no string-literal pattern match is needed at the parsing boundary or any dispatch site. - Refresh
Status - Result of
AuthProviderFlow::refresh_status— caller renders the outcome (CLI message, gateway JSON, etc.) without doing its own provider-aware formatting.
Traits§
Functions§
- clear_
pending_ oauth_ login - default_
profile_ id - load_
pending_ oauth_ login - normalize_
model_ provider - Permissive string-returning normalizer for token-storage callers
(paste-token, setup-token, set-active-profile, …) that accept
arbitrary provider names. Known OAuth-flow providers collapse to
their canonical form via
AuthProvider; unknown names lower-case and pass through unchanged so storage works for any bearer-token provider operators want to support. Empty input is rejected. - save_
pending_ oauth_ login - select_
profile_ id - state_
dir_ from_ config