login

package
v0.50.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 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, apiUrl string) error

Execute runs an Authorization Code flow login 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