prompt

package
v0.0.0-...-049ef2a Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2023 License: MIT Imports: 1 Imported by: 3

Documentation

Index

Constants

View Source
const (
	None          = "none"
	Login         = "login"
	Consent       = "consent"
	SelectAccount = "select_account"
)

Variables

This section is empty.

Functions

func Include

func Include(prompts string, target string) bool

func IncludeAll

func IncludeAll(prompts string, targetPrompts []string) (bool, string)

func IncludeConsent

func IncludeConsent(prompts string) bool

func IncludeLogin

func IncludeLogin(prompts string) bool

func IncludeNone

func IncludeNone(prompts string) bool

func IncludeSelectAccount

func IncludeSelectAccount(prompts string) bool

func Split

func Split(prompts string) []string

func Validate

func Validate(prompts string) bool

Types

type NoConsentPromptPolicy

type NoConsentPromptPolicy int
const (
	NoConsentPromptPolicyForceConsent NoConsentPromptPolicy = iota
	NoConsentPromptPolicyOmitConsentIfCan
)

type NonePromptPolicy

type NonePromptPolicy int
const (
	NonePromptPolicyForbidden NonePromptPolicy = iota
	NonePromptPolicyAllowWithLoginSession
	NonePromptPolicyAllowIfLoginHintMatched
	NonePromptPolicyAllowIfIdTokenHintMatched
)

Jump to

Keyboard shortcuts

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