local

package
v2.2.6-rc2+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2019 License: Apache-2.0 Imports: 16 Imported by: 162

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) CanAccessWithGroupProviders

func (l *Provider) CanAccessWithGroupProviders(userPrincipalID string, groupPrincipals []v3.Principal) (bool, 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) RefetchGroupPrincipals

func (l *Provider) RefetchGroupPrincipals(principalID string, secret string) ([]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