class

Anthropic::GoogleAuth::Provider

Inherits Reference < Object

Resolves and caches GCP access tokens.

Constructors

new(access_token : String | Nil = nil, token_provider : -> String | Nil = nil, credentials_path : String | Path | Nil = nil, enable_metadata_server : Bool = true)

Explicit token, token proc, ADC file path, and metadata toggle.

Source

Instance methods

authorization_header

Build the Authorization header value for a request.

Source
token

Return a usable access token, refreshing cached ADC tokens a minute before expiry.

Source