Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrIdentityProviderNotFound error in not found identity provider. ErrIdentityProviderNotFound = errors.New("identity provider not found") )
tenantID:provider.
Functions ¶
func RegisterIdentityProvider ¶
RegisterIdentityProvider register Provider with key.
func RegisterProviderFactory ¶
func RegisterProviderFactory(factory ProviderFactory)
RegisterProviderFactory registers ProviderFactory with the specified type.
Types ¶
type Identity ¶
type Identity interface { // Identifier for the End-User. GetUserID() string // User's tenant info at needed. GetTenantID() string // The username which the End-User wishes to be referred to panda. GetUsername() string // Email user's email info at needed. GetEmail() string // External idprovider unique user id. GetExternalID() string // Other extensions. GetExtra() map[string]any }
Identity represents the account mapped to this system.
type Provider ¶
type Provider interface { // Type unique type of the provider. Type() string // AuthenticateCode authenticate identity with code from remote server. AuthenticateCode(code string) (Identity, error) // Authenticate basic authn username password. Authenticate(username string, password string) (Identity, error) AuthCodeURL(state, nonce string) string }
func GetIdentityProvider ¶
GetIdentityProvider returns identity Provider with key.
Click to show internal directories.
Click to hide internal directories.