login

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2021 License: Apache-2.0 Imports: 20 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
	CfgHandler *config.CfgHandler
	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      *url.URL
	RedirectPath string
}

Jump to

Keyboard shortcuts

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