Documentation
¶
Overview ¶
Package cmd provides CLI commands for the CERN SSO tool.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func GetOTPProvider ¶
func GetOTPProvider() *auth.OTPProvider
GetOTPProvider returns an OTP provider configured with CLI flags.
func GetPreferredMethod ¶ added in v0.18.0
func GetPreferredMethod() string
GetPreferredMethod returns the user's preferred 2FA method. Returns "otp", "webauthn", or "" (use server default).
func GetWebAuthnProvider ¶
func GetWebAuthnProvider() *auth.WebAuthnProvider
GetWebAuthnProvider returns a WebAuthn provider configured with CLI flags.
func ValidateMethodFlags ¶ added in v0.18.0
func ValidateMethodFlags() error
ValidateMethodFlags checks that --use-otp and --use-webauthn are not both set.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.