adk_authorization_flow (erlang_adk v0.7.0)
View SourceSupervised, bounded OAuth/OIDC authorization-code flow manager.
Provider profiles are immutable operator configuration. Public calls select only a configured provider and an allowed scope subset; adapter modules, client credentials, redirect URIs, resources, nonce and PKCE material never come from the browser. Callback state is claimed atomically before a short-lived supervised worker exchanges the code and stores the validated credential under the original opaque flow reference.
Summary
Functions
Begin a flow. The returned map is directly compatible with adk_suspension:request_credential/2. Its correlation_id is the OAuth state consumed by complete/3 or cancel/2.
Types
-type server() :: gen_server:server_ref().
Functions
Begin a flow. The returned map is directly compatible with adk_suspension:request_credential/2. Its correlation_id is the OAuth state consumed by complete/3 or cancel/2.
-spec child_spec(map()) -> supervisor:child_spec().
-spec start_link() -> gen_server:start_ret().
-spec start_link(map()) -> gen_server:start_ret().