Thanks to visit codestin.com
Credit goes to docs.rs

Skip to main content

Crate agentzero_auth

Crate agentzero_auth 

Source
Expand description

Credential management for AgentZero.

Handles API key storage and authentication profiles for multiple LLM providers. Credentials are persisted in an encrypted JSON store.

Structs§

AuthManager
AuthProfile
AuthProfileSummary
AuthStatus
GeminiOAuthConfig
Google Gemini OAuth configuration.
PendingOAuthLogin
ProfileHealth
Per-profile health report returned by token_health.
RefreshResult
ResolvedCredential
The result of credential resolution from auth profiles.

Enums§

CredentialSource
Describes which resolution path produced the credential.
RefreshStatus
TokenHealth
Token health status for display and pre-call validation.

Functions§

extract_oauth_code_from_input
extract_oauth_state
gemini_authorize_url
Build the Google OAuth2 authorization URL for Gemini API access.
gemini_exchange_code
Exchange a Google OAuth authorization code for tokens. Returns (access_token, refresh_token, expires_in_secs).
gemini_refresh_token
Refresh a Google OAuth access token using a refresh token. Returns (new_access_token, expires_in_secs).