providers

package
v0.4.33 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Providers []string

Providers map

Functions

func IsProviderSupported

func IsProviderSupported(name string) bool

IsProviderSupported returns if provider by name is supported

func RegisterProviders added in v0.4.3

func RegisterProviders()

RegisterProviders creates object of type driver for every request

Types

type IdentityProvider

type IdentityProvider interface {
	GetName() string
	GetUserType() string
	GenerateToken(json map[string]string) (model.Token, int, error)
	RefreshToken(json map[string]string) (model.Token, int, error)
	GetIdentities(accessToken string) ([]client.Identity, error)
	GetIdentity(externalID string, externalIDType string, accessToken string) (client.Identity, error)
	SearchIdentities(name string, exactMatch bool, accessToken string) ([]client.Identity, error)
	LoadConfig(authConfig *model.AuthConfig) error
	GetSettings() map[string]string
	GetConfig() model.AuthConfig
	GetProviderSettingList(listOnly bool) []string
	AddProviderConfig(authConfig *model.AuthConfig, providerSettings map[string]string)
	GetLegacySettings() map[string]string
	GetRedirectURL() string
	GetIdentitySeparator() string
	TestLogin(testAuthConfig *model.TestAuthConfig, accessToken string, originalLogin string) (int, error)
	GetProviderConfigResource() interface{}
	CustomizeSchema(schema *v1client.Schema) *v1client.Schema
	GetProviderSecretSettings() []string
	IsIdentityLookupSupported() bool
}

IdentityProvider interfacse defines what methods an identity provider should implement

func GetProvider

func GetProvider(name string) (IdentityProvider, error)

GetProvider returns an instance of an identyityProvider by name

Directories

Path Synopsis
ad

Jump to

Keyboard shortcuts

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