providers

package
v0.0.0-...-5e5ff2f Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2018 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthenticateUser

func AuthenticateUser(input interface{}, providerName string) (v3.Principal, []v3.Principal, map[string]string, int, error)

func Configure

func Configure(ctx context.Context, mgmt *config.ManagementContext)

func SearchPrincipals

func SearchPrincipals(name, principalType string, myToken v3.Token) ([]v3.Principal, int, error)

func SetupAuthConfig

func SetupAuthConfig(ctx context.Context, management *config.ManagementContext, schemas *types.Schemas)

Types

type PrincipalProvider

type PrincipalProvider interface {
	GetName() string
	AuthenticateUser(input interface{}) (v3.Principal, []v3.Principal, map[string]string, int, error)
	SearchPrincipals(name, principalType string, myToken v3.Token) ([]v3.Principal, int, error)
	ConfigActionHandler(actionName string, action *types.Action, request *types.APIContext) error
}

PrincipalProvider interfacse defines what methods an identity provider should implement

func GetProvider

func GetProvider(providerName string) (PrincipalProvider, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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