idp

package
v1.0.27 Latest Latest
Warning

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

Go to latest
Published: May 7, 2022 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IdentityProvider

type IdentityProvider interface {
	GetRealm() string
	GetName() string
	GetKind() string
	GetConfig() map[string]interface{}
	Configure() error
	Configured() bool
	Request(operator.Type, *requests.Request) error
	GetIconName() string
	GetIconText() string
	GetIconColor() string
}

IdentityProvider represents identity provider.

func NewIdentityProvider

func NewIdentityProvider(cfg *IdentityProviderConfig, logger *zap.Logger) (IdentityProvider, error)

NewIdentityProvider returns IdentityProvider instance.

type IdentityProviderConfig

type IdentityProviderConfig struct {
	Name   string                 `json:"name,omitempty" xml:"name,omitempty" yaml:"name,omitempty"`
	Kind   string                 `json:"kind,omitempty" xml:"kind,omitempty" yaml:"kind,omitempty"`
	Params map[string]interface{} `json:"params,omitempty" xml:"params,omitempty" yaml:"params,omitempty"`
}

IdentityProviderConfig represents an identity provider configuration.

func NewIdentityProviderConfig

func NewIdentityProviderConfig(name, kind string, params map[string]interface{}) (*IdentityProviderConfig, error)

NewIdentityProviderConfig returns IdentityProviderConfig instance.

func (*IdentityProviderConfig) Validate

func (cfg *IdentityProviderConfig) Validate() error

Validate validates identity provider config.

type IdentityProviderType

type IdentityProviderType int

IdentityProviderType identifies identity provider type.

const (
	// UNKNOWN identifies unknown identity provider type.
	UNKNOWN IdentityProviderType = iota
	// OAUTH identifies OAuth-based identity provider.
	OAUTH
	// SAML identifies SAML-based identity provider.
	SAML
)

func (IdentityProviderType) String

func (m IdentityProviderType) String() string

String returns the description for IdentityProviderType enum.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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