Documentation
¶
Overview ¶
Package keycloak provides a local file system access layer whose users are authenticated by Keycloak
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrMissingBasePath is triggered when the base_path property isn't specified ErrMissingBasePath = errors.New("base_path must be specified") // ErrLogin is returned when the user couldn't be authenticated by Keycloak ErrLogin = errors.New("login failed, User or Password error") // ErrMissingKeycloakClientCredentials is returned when the keycloak parameters are incomplete ErrMissingKeycloakClientCredentials = errors.New("missing the keycloak client credentials") // ErrInvalidUserName is returned when the user name can't be used as a directory name ErrInvalidUserName = errors.New("invalid user name") )
Functions ¶
Types ¶
type Authenticator ¶ added in v0.16.4
type Authenticator struct {
// contains filtered or unexported fields
}
Authenticator checks users credentials against a Keycloak server
func (*Authenticator) CheckPasswd ¶ added in v0.16.4
func (a *Authenticator) CheckPasswd(user, pass string) (bool, error)
CheckPasswd checks the user's credentials against Keycloak
type KeycloakAuthenticator
deprecated
type KeycloakAuthenticator = Authenticator //nolint:revive // kept for backward compatibility
KeycloakAuthenticator is the former name of Authenticator
Deprecated: use Authenticator instead.
Click to show internal directories.
Click to hide internal directories.