Documentation ¶
Index ¶
Constants ¶
View Source
const (
LdapIdentityProvider = "LDAPIdentityProvider"
)
Variables ¶
View Source
var (
ErrorIdentityProviderNotFound = errors.New("the identity provider was not found")
)
Functions ¶
func RegisterOAuthProvider ¶
func RegisterOAuthProvider(provider OAuthProvider)
Types ¶
type LdapProvider ¶
type LdapProvider interface {
Authenticate(username string, password string) (*iamv1alpha2.User, error)
}
func NewLdapProvider ¶
func NewLdapProvider(options *oauth.DynamicOptions) (LdapProvider, error)
type OAuthProvider ¶
type OAuthProvider interface { Type() string Setup(options *oauth.DynamicOptions) (OAuthProvider, error) IdentityExchange(code string) (Identity, error) }
func GetOAuthProvider ¶
func GetOAuthProvider(providerType string, options *oauth.DynamicOptions) (OAuthProvider, error)
Click to show internal directories.
Click to hide internal directories.