configure

package
v11.3.3 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResolveCallbackURL

func ResolveCallbackURL(logger *logrus.Entry, clt auth.ClientI, fieldName string, callbackPattern string) string

ResolveCallbackURL deals with common pattern of resolving callback URL for IdP to use.

Types

type AuthKindCommand

type AuthKindCommand struct {
	Parsed bool
	Run    func(ctx context.Context, clt auth.ClientI) error
}

type SSOConfigureCommand

type SSOConfigureCommand struct {
	Config       *service.Config
	ConfigureCmd *kingpin.CmdClause
	AuthCommands []*AuthKindCommand
	Logger       *logrus.Entry
}

SSOConfigureCommand implements common.CLICommand interface

func (*SSOConfigureCommand) Initialize

func (cmd *SSOConfigureCommand) Initialize(app *kingpin.Application, cfg *service.Config)

Initialize allows a caller-defined command to plug itself into CLI argument parsing

func (*SSOConfigureCommand) TryRun

func (cmd *SSOConfigureCommand) TryRun(ctx context.Context, selectedCommand string, clt auth.ClientI) (match bool, err error)

TryRun is executed after the CLI parsing is done. The command must determine if selectedCommand belongs to it and return match=true

Jump to

Keyboard shortcuts

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