Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultOIDCScopes []string = []string{oidc.ScopeOpenID, "profile", "email"}
View Source
var MandateOIDCScopes []string = []string{oidc.ScopeOpenID}
Functions ¶
This section is empty.
Types ¶
type LDAPClient ¶
type LDAPClient struct { Conn *ldap.Conn Attributes []string Base string BindDN string BindPassword string GroupFilter string Host string ServerName string UserFilter string Port int InsecureSkipVerify bool UseSSL bool SkipTLS bool Timeout time.Duration }
func (*LDAPClient) Authenticate ¶
Authenticate authenticates the user against the ldap backend.
func (*LDAPClient) Connect ¶
func (lc *LDAPClient) Connect() error
Connect connects to the ldap backend.
func (*LDAPClient) GetGroupsOfUser ¶
func (lc *LDAPClient) GetGroupsOfUser() ([]string, error)
GetGroupsOfUser returns the group for a user.
type RemoteAuthInterface ¶
type RemoteAuthInterface interface { LDAPAuth(ldap *share.CLUSServerLDAP, username, password string) (map[string]string, []string, error) SAMLSPGetRedirectURL(csaml *share.CLUSServerSAML, redir *api.RESTTokenRedirect) (string, error) SAMLSPAuth(csaml *share.CLUSServerSAML, tokenData *api.RESTAuthToken) (map[string][]string, error) OIDCDiscover(issuer string) (string, string, string, string, error) OIDCGetRedirectURL(csaml *share.CLUSServerOIDC, redir *api.RESTTokenRedirect) (string, error) OIDCAuth(coidc *share.CLUSServerOIDC, tokenData *api.RESTAuthToken) (map[string]interface{}, error) }
func NewRemoteAuther ¶
func NewRemoteAuther() RemoteAuthInterface
Click to show internal directories.
Click to hide internal directories.