Documentation
¶
Overview ¶
Package nativeauth adapts native login processes to the product's existing flow-scoped auth API. Each connection owns a private credential directory.
Index ¶
- func CaptureURL(flow *agent.AuthFlow, line string, hosts ...string)
- func LoginCommand(flow *agent.AuthFlow, binary string, args []string, env map[string]string, ...) error
- type Auth
- func (a *Auth) Active() bool
- func (a *Auth) Begin(ctx context.Context, method string) (agent.AuthState, error)
- func (a *Auth) Callback(_ context.Context, id, raw string) (agent.AuthState, error)
- func (a *Auth) EnvForRun() map[string]string
- func (a *Auth) Logout(ctx context.Context) error
- func (a *Auth) Methods() []agent.AuthMethod
- func (a *Auth) PrepareAuth(context.Context) error
- func (a *Auth) Status(ctx context.Context) agent.AuthStatus
- func (a *Auth) Step(_ context.Context, input map[string]string) (agent.AuthState, error)
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CaptureURL ¶
CaptureURL exposes only an allowlisted authorization URL, never raw process output. Optional callback relay is bound to this URL's exact loopback + state.