Gemini.Auth (GeminiEx v0.0.2)
View SourceAuthentication strategy behavior and implementations for Gemini and Vertex AI.
This module provides a unified interface for different authentication methods:
- Gemini API: Simple API key authentication
- Vertex AI: OAuth2/Service Account authentication
Summary
Functions
Authenticate using the given strategy and configuration.
Get base URL using the given strategy and configuration.
Build authenticated headers for the given strategy and credentials.
Build the full path for an API endpoint.
Get the base URL for the given strategy and credentials.
Get the appropriate authentication strategy based on configuration.
Refresh credentials if needed (mainly for Vertex AI OAuth tokens).
Get the appropriate authentication strategy based on configuration. (Alias for get_strategy/1 for backward compatibility)
Types
Functions
Authenticate using the given strategy and configuration.
Get base URL using the given strategy and configuration.
Build authenticated headers for the given strategy and credentials.
Build the full path for an API endpoint.
Get the base URL for the given strategy and credentials.
Get the appropriate authentication strategy based on configuration.
Refresh credentials if needed (mainly for Vertex AI OAuth tokens).
Get the appropriate authentication strategy based on configuration. (Alias for get_strategy/1 for backward compatibility)