providers

package
Version: v0.0.0-...-ac02f16 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2020 License: Apache-2.0 Imports: 21 Imported by: 34

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(ctx context.Context, 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