Provider authentication service. Collects plugin-supplied auth methods (OAuth and API-key flows with their interactive prompts) and drives the authorize/callback handshake, persisting the resulting credentials via Auth.
Classes
Members
(static, constant) AuthorizeInput
Input to the authorize step: the chosen method index and any prompt answers.
(static, constant) CallbackInput
Input to the callback step: the method index and (for "code" flows) the OAuth code.
(static, constant) Methods
Map from provider id to the list of auth methods it supports.
(static, constant) OauthCallbackFailed
Error: the provider's OAuth callback did not return a successful result.
(static, constant) OauthCodeMissing
Error: a "code" OAuth flow reached callback without an authorization code.
(static, constant) OauthMissing
Error: callback was called for a provider with no pending authorization.
(static, constant) ValidationFailed
Error: a prompt input failed the provider's validation.
(static, constant) defaultLayer
The ProviderAuth layer with its Auth and Plugin dependencies provided.
(static, constant) layer
Layer building the ProviderAuth service. Reads auth hooks from loaded plugins and exposes methods (list available methods), authorize (start an OAuth flow), and callback (finish the flow and persist credentials).
(inner, constant) Prompt
Union of the supported interactive auth prompt kinds.
(inner, constant) SelectOption
A single choice in a SelectPrompt.
(inner, constant) SelectPrompt
A single-choice auth prompt presenting a fixed set of options.
(inner, constant) TextPrompt
A free-text auth prompt (e.g. asking the user for an API base URL).
(inner, constant) When
Conditional that shows/hides a prompt based on another input's value (eq/neq).