Documentation
¶
Index ¶
- Constants
- type Bootstrap
- func (b *Bootstrap) AuthenticateRequest(req *http.Request) (*authenticator.Response, bool, error)
- func (b *Bootstrap) Enabled(ctx context.Context) (bool, error)
- func (b *Bootstrap) IsEnabled(req api.Context) error
- func (b *Bootstrap) Login(req api.Context) error
- func (b *Bootstrap) Logout(req api.Context) error
- func (b *Bootstrap) SetupEnabled(ctx context.Context) (bool, error)
Constants ¶
View Source
const (
ObotBootstrapCookie = "obot-bootstrap"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bootstrap ¶
type Bootstrap struct {
// contains filtered or unexported fields
}
func New ¶
func New(ctx context.Context, serverURL string, c *client.Client, authProviderGetter configuredAuthProviderGetter, authEnabled, forceEnableBootstrap, disabled bool) (*Bootstrap, error)
New builds the bootstrap token handler. disabled turns off bootstrap-token generation and authentication, which startup does once it has provisioned the local auth owner through a separately secured setup link.
func (*Bootstrap) AuthenticateRequest ¶
Click to show internal directories.
Click to hide internal directories.