adk_google_adc (erlang_adk v0.9.0)

View Source

Bounded OAuth bearer acquisition for the Vertex request adapter.

A direct api_key is treated as an already-minted OAuth access token. The google_adc source invokes either a trusted injected provider (for managed integrations/tests) or the fixed gcloud Application Default Credentials command. No shell, caller-supplied executable, arguments, or output-derived error term crosses this boundary.

Summary

Functions

access_token(Config)

-spec access_token(map()) -> {ok, binary()} | {error, term()}.

validate_config(Config)

-spec validate_config(term()) -> ok | {error, term()}.