login

package
v0.39.0-beta1 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2022 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
	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      *url.URL
	RedirectPath string
}

Jump to

Keyboard shortcuts

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