local

package
v2.1.12-rc3+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2019 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, tokenMGR *tokens.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, 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