identityprovider

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2020 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IdentityProvidersStore = make(map[string]IdentityProvider)

IdentityProvidersStore represents identity providers for every tenantID.

Functions

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

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.

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