identityprovider

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more Imports: 23 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteIdentityProvider added in v1.2.5

func DeleteIdentityProvider(tenantID string)

func GetAllIdentityProviderMap added in v1.2.5

func GetAllIdentityProviderMap() map[string]IdentityProvider

func NewDexHookHandler

func NewDexHookHandler(ctx context.Context, authClient authinternalclient.AuthInterface, config *dexserver.Config, storage dexstorage.Storage, handler *DexHander,
	publicAddress string, internalAddress string, tokenAuthn *authenticator.TokenAuthenticator) genericapiserver.PostStartHookProvider

func SetIdentityProvider added in v1.2.5

func SetIdentityProvider(tenantID string, provider IdentityProvider)

Types

type DexHander

type DexHander struct {
	// contains filtered or unexported fields
}

func (*DexHander) ServeHTTP

func (t *DexHander) ServeHTTP(w http.ResponseWriter, r *http.Request)

type GroupGetter

type GroupGetter interface {
	GetGroup(ctx context.Context, name string, options *metav1.GetOptions) (*auth.Group, error)
}

GroupGetter is an object that can get the group that match the provided field and label criteria.

type GroupLister

type GroupLister interface {
	ListGroups(ctx context.Context, options *metainternal.ListOptions) (*auth.GroupList, error)
}

GroupLister is an object that can list groups that match the provided field and label criteria.

type IdentityProvider

type IdentityProvider interface {

	// Open is used to open a dex connector instance.
	Open(id string, logger dexlog.Logger) (connector.Connector, error)

	// Store generates a identity provider object into storage.
	Store() (*auth.IdentityProvider, error)
}

IdentityProvider defines a object that generate a dex connector.

func GetIdentityProvider added in v1.2.5

func GetIdentityProvider(tenantID string) (IdentityProvider, bool)

type UserGetter

type UserGetter interface {
	GetUser(ctx context.Context, name string, options *metav1.GetOptions) (*auth.User, error)
}

UserGetter is an object that can get the user that match the provided field and label criteria.

type UserLister

type UserLister interface {
	ListUsers(ctx context.Context, options *metainternal.ListOptions) (*auth.UserList, error)
}

UserLister is an object that can list users that match the provided field and label criteria.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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