Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct { Credentials *session.StoredCredentials // Profile which is being authenticated Host string // The address to which the local callback is bound Port int // The port to which the local callback is bound AuthenticationURL string // URL where the user should be redirected // contains filtered or unexported fields }
Browser-based authentication callback handler. When using browser-based authentication, the user is given a link to follow which handles authentication w/ spacelift.io. Afterwards, the user is redirected to a page hosted on localhost which receives an encrypted API token. This type will handle the local authentication callback, and store the token in the given profile after completion. This helper package does not save the profile after updating the token. The caller of this package should call manager.Create(profile) to save the updated profile if a new valid token was received.
func BeginWithBindAddress ¶
Click to show internal directories.
Click to hide internal directories.