Versions in this module Expand all Collapse all v1 v1.2.0 Aug 21, 2020 v1.1.3 Jun 29, 2020 Changes in this version + const DCOSOIDCAuth0 + const DCOSUIDPassword + const DCOSUIDPasswordLDAP + const DCOSUIDServiceKey + const DCOSUsers + const OIDCAuthCodeFlow + const OIDCImplicitFlow + const SAMLSpInitiated + var ErrAuthDisabled = errors.New("authentication disabled") + type Client struct + func NewClient(baseClient *httpclient.Client, logger *logrus.Logger) *Client + func (c *Client) Login(loginEndpoint string, credentials *Credentials) (string, error) + func (c *Client) Providers() (Providers, error) + type Credentials struct + Password string + Token string + UID string + type Flags struct + func NewFlags(fs afero.Fs, envLookup func(key string) (string, bool), logger *logrus.Logger) *Flags + func (f *Flags) Register(flags *pflag.FlagSet) + func (f *Flags) Resolve() error + func (f *Flags) SetProviderID(providerID string) + func (f *Flags) Supports(provider *Provider) bool + type Flow struct + func NewFlow(opts FlowOpts) *Flow + func (f *Flow) Start(flags *Flags, httpClient *httpclient.Client) (string, error) + type FlowOpts struct + Errout io.Writer + Logger *logrus.Logger + Opener open.Opener + Prompt *prompt.Prompt + type JWT struct + Token string + type Provider struct + ClientMethod string + Config ProviderConfig + Description string + ID string + Type string + func (provider *Provider) String() string + type ProviderConfig struct + StartFlowURL string + type Providers map[string]*Provider + func (p *Providers) UnmarshalJSON(data []byte) error + func (p Providers) Slice() []*Provider