authentication

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertAuthType

func ConvertAuthType(authChoice string) (config.AuthType, error)

Convert authChoice from a string to a proper AuthType type

func HandleAuthChoice

func HandleAuthChoice(authType config.AuthType, targetOS config.OperatingSystem) error

Route an authentication choice to the proper prompts/information

func PromptAndConfigAuth

func PromptAndConfigAuth(osType config.OperatingSystem) error

func PromptAndConvertAuthType

func PromptAndConvertAuthType() (config.AuthType, error)

func PromptAuth

func PromptAuth() (bool, error)

Prompt asking users if they wish to setup Authentication

func PromptAuthentication

func PromptAuthentication() (string, error)

Prompt asking user for their desired authentication method

func PromptOIDCClientID

func PromptOIDCClientID() (string, error)

Prompt asking users to provide a client-id for OIDC

func PromptOIDCClientSecret

func PromptOIDCClientSecret() (string, error)

Prompt asking users to provide a client-secret for OIDC

func PromptOIDCIssuerURL

func PromptOIDCIssuerURL() (string, error)

Prompt asking users to provide an issuer URL for OIDC

func PromptOIDCUsernameClaim

func PromptOIDCUsernameClaim() (string, error)

Prompt asking users to provide a username claim for OIDC

func PromptSAMLAttribute

func PromptSAMLAttribute() (string, error)

Prompt asking users to provide a username attribute for SAML

func PromptSAMLMetadataURL

func PromptSAMLMetadataURL() (string, error)

Prompt asking users to provide a metadata URL for SAML

Types

This section is empty.

Jump to

Keyboard shortcuts

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