oidc

package
v0.1.22 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OIDCFieldGroup

type OIDCFieldGroup struct {
	OIDCProviders []*OIDCProvider `default:"[]" validate:"" json:"-" yaml:"-"`
}

OIDC represents the OIDC config fields

func NewOIDCFieldGroup

func NewOIDCFieldGroup(fullConfig map[string]interface{}) (*OIDCFieldGroup, error)

NewOIDCFieldGroup creates a new OIDCFieldGroup

func (*OIDCFieldGroup) Fields

func (fg *OIDCFieldGroup) Fields() []string

Fields returns a list of strings representing the fields in this field group

func (*OIDCFieldGroup) Validate

func (fg *OIDCFieldGroup) Validate(opts shared.Options) []shared.ValidationError

Validate checks the configuration settings for this field group

type OIDCProvider

type OIDCProvider struct {
	OIDCServer                 string        `default:"" validate:"" json:"OIDC_SERVER,omitempty" yaml:"OIDC_SERVER,omitempty"`
	ClientID                   string        `default:"" validate:"" json:"CLIENT_ID,omitempty" yaml:"CLIENT_ID,omitempty"`
	ClientSecret               string        `default:"" validate:"" json:"CLIENT_SECRET,omitempty" yaml:"CLIENT_SECRET,omitempty"`
	ServiceIcon                string        `default:"" validate:"" json:"SERVICE_ICON,omitempty" yaml:"SERVICE_ICON,omitempty"`
	VerifiedEmailClaimName     string        `default:"" validate:"" json:"VERIFIED_EMAIL_CLAIM_NAME,omitempty" yaml:"VERIFIED_EMAIL_CLAIM_NAME,omitempty"`
	PreferredUsernameClaimName string        `default:"" validate:"" json:"PREFERRED_USERNAME_CLAIM_NAME,omitempty" yaml:"PREFERRED_USERNAME_CLAIM_NAME,omitempty"`
	LoginScopes                []interface{} `default:"" validate:"" json:"LOGIN_SCOPES,omitempty" yaml:"LOGIN_SCOPES,omitempty"`
	ServiceName                string        `default:"" validate:"" json:"SERVICE_NAME,omitempty" yaml:"SERVICE_NAME,omitempty"`
	// contains filtered or unexported fields
}

func NewOIDCProvider

func NewOIDCProvider(prefix string, providerConfig map[string]interface{}) (*OIDCProvider, error)

NewOIDCProvider creates a new OIDCProvider

Jump to

Keyboard shortcuts

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