Documentation
¶
Overview ¶
Package oauthlogin provides an opt-in, host-side OAuth loopback login runtime.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrAuthorizationFailed reports a redacted failure of the authorization interaction. ErrAuthorizationFailed = errors.New("OAuth authorization failed") // ErrCallbackAttempts reports exhaustion of the callback request budget. ErrCallbackAttempts = errors.New("OAuth callback request limit exceeded") )
View Source
var ErrBrowserLaunch = errors.New("could not open browser")
ErrBrowserLaunch indicates that the fixed host browser launcher could not start.
Functions ¶
This section is empty.
Types ¶
type AuthorizeFunc ¶
type AuthorizeFunc func(ctx context.Context, redirectURL string, present func(context.Context, string) (Result, error)) error
AuthorizeFunc performs the controller-owned OAuth operation. It may call present once.
type BrowserLauncher ¶
BrowserLauncher opens an authorization URL according to host policy.
type Options ¶
type Options struct {
NoBrowser bool
URLWriter io.Writer
Launcher BrowserLauncher
}
Options configures a Runtime.
Click to show internal directories.
Click to hide internal directories.