oidc

package
v0.0.0-...-534dfd5 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OidcServerConfigItem         = "oidc-server"
	OidcServerConfigDescription  = "oidc server url"
	OidcIdConfigItem             = "oidc-client-id"
	OidcIdConfigDescription      = "oidc client id"
	OidcSecretConfigItem         = "oidc-client-secret"
	OidcSecretConfigDescription  = "oidc client secret"
	UsePkceConfigItem            = "oidc-use-pkce"
	UsePkceConfigDescription     = "if use pkce"
	ClusterIdConfigItem          = "cluster-id"
	ClusterIdConfigDescription   = "cluster id"
	ClusterUrlConfigItem         = "cluster-url"
	ClusterUrlConfigDescription  = "cluster api server endpoint"
	ClusterAuthConfigItem        = "cluster-auth"
	ClusterAuthConfigDescription = "cluster auth data"
	ConfigUrlConfigItem          = "config-url"
	ConfigUrlConfigDescription   = "configuration endpoint"
	CaCertConfigItem             = "ca-cert"
	CaCertConfigDescription      = "ca cert for configuration url"
	SkipTlsVerifyConfigItem      = "skip-ssl"
	SkipTlsVerifyDescription     = "flag to skip ssl for calling config url"
	SkipOidcTlsVerifyConfigItem  = "skip-oidc-ssl"
	SkipOidcTlsVerifyDescription = "flag to skip ssl for calling oidc server"
)
View Source
const Oidc = "oidc"

Variables

This section is empty.

Functions

func ReadUserInput

func ReadUserInput(key string, msg string) (string, error)

func SharedConfig

func SharedConfig() config.ConfigurationSet

SharedConfig will return shared configuration items for OIDC based cluster and identity providers

Types

type Identity

type Identity struct {
	OidcServer        string
	OidcId            string
	OidcSecret        string
	UsePkce           string
	SkipOidcTlsVerify string
}

Identity represents an oidc identity

func (*Identity) IdentityProviderName

func (i *Identity) IdentityProviderName() string

func (*Identity) IsExpired

func (i *Identity) IsExpired() bool

func (*Identity) Name

func (i *Identity) Name() string

func (*Identity) Type

func (i *Identity) Type() string

Jump to

Keyboard shortcuts

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