login

package
v0.26.0-alpha4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 7, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthorizationCodeGrant

type AuthorizationCodeGrant struct {
	HTTPClient *http.Client
	Config     config.IConfig
	Logger     logging.Logger
	IO         *iostreams.IOStreams
	Localizer  localize.Localizer
	ClientID   string
	Scopes     []string
	PrintURL   bool
}

func (*AuthorizationCodeGrant) Execute

func (a *AuthorizationCodeGrant) Execute(ctx context.Context, ssoCfg *SSOConfig, masSSOCfg *SSOConfig) error

Execute runs an Authorization Code flow login enabling the user to log in to SSO and MAS-SSO in succession https://tools.ietf.org/html/rfc6749#section-4.1

type SSOConfig

type SSOConfig struct {
	AuthURL      string
	RedirectPath string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL