providers

package
v0.0.0-...-bb30682 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthenticateUser

func AuthenticateUser(jsonInput v3.LoginInput) (v3.Principal, []v3.Principal, map[string]string, int, error)

func Configure

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

func SearchPrincipals

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

Types

type PrincipalProvider

type PrincipalProvider interface {
	GetName() string
	AuthenticateUser(jsonInput v3.LoginInput) (v3.Principal, []v3.Principal, map[string]string, int, error)
	SearchPrincipals(name string, myToken v3.Token) ([]v3.Principal, int, error)
}

PrincipalProvider interfacse defines what methods an identity provider should implement

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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