providers

package
v2.2.8-ent2-rc4+incomp... Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2019 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ProviderNames          = make(map[string]bool)
	ProvidersWithSecrets   = make(map[string]bool)
	UnrefreshableProviders = make(map[string]bool)

	LocalProvider = "local"
)

Functions

func AuthenticateUser

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

func CanAccessWithGroupProviders

func CanAccessWithGroupProviders(providerName string, userPrincipalID string, groups []v3.Principal) (bool, error)

func Configure

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

func GetPrincipal

func GetPrincipal(principalID string, myToken v3.Token) (v3.Principal, error)

func GetProvider

func GetProvider(providerName string) (common.AuthProvider, error)

func GetProviderByType

func GetProviderByType(configType string) common.AuthProvider

func RefetchGroupPrincipals

func RefetchGroupPrincipals(principalID string, providerName string, secret string) ([]v3.Principal, error)

func SearchPrincipals

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

func SetupAuthConfig

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

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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