configure

package
v0.0.0-...-5c79d48 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: AGPL-3.0 Imports: 13 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       *servicecfg.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 *servicecfg.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