local

package
v0.0.0-...-4eb0dc1 Latest Latest
Warning

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

Go to latest
Published: May 18, 2018 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name = "local"
)

Variables

This section is empty.

Functions

func Configure

func Configure(ctx context.Context, mgmtCtx *config.ScaledContext, userMGR user.Manager) common.AuthProvider

Types

type Provider

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

func (*Provider) AuthenticateUser

func (l *Provider) AuthenticateUser(input interface{}) (v3.Principal, []v3.Principal, map[string]string, error)

func (*Provider) CustomizeSchema

func (l *Provider) CustomizeSchema(schema *types.Schema)

func (*Provider) GetName

func (l *Provider) GetName() string

func (*Provider) GetPrincipal

func (l *Provider) GetPrincipal(principalID string, token v3.Token) (v3.Principal, error)

func (*Provider) SearchPrincipals

func (l *Provider) SearchPrincipals(searchKey, principalType string, token v3.Token) ([]v3.Principal, error)

func (*Provider) SearchPrincipalsDedupe

func (l *Provider) SearchPrincipalsDedupe(searchKey, principalType string, token v3.Token, principalsFromOtherProviders []v3.Principal) ([]v3.Principal, error)

SearchPrincipalsDedupe performs principal search, but deduplicates the results against the supplied list (that should have come from other non-local auth providers) This is to avoid getting duplicate search results

func (*Provider) TransformToAuthProvider

func (l *Provider) TransformToAuthProvider(authConfig map[string]interface{}) map[string]interface{}

Jump to

Keyboard shortcuts

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