Documentation ¶
Index ¶
- func NewAuthManager(clientManager client.ClientManager, tokenManager authApi.TokenManager, ...) authApi.AuthManager
- func NewBasicAuthenticator(spec *authApi.LoginSpec) authApi.Authenticator
- func NewKubeConfigAuthenticator(spec *authApi.LoginSpec, authModes authApi.AuthenticationModes) authApi.Authenticator
- func NewTokenAuthenticator(spec *authApi.LoginSpec) authApi.Authenticator
- type AuthHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAuthManager ¶
func NewAuthManager(clientManager client.ClientManager, tokenManager authApi.TokenManager, authenticationModes authApi.AuthenticationModes) authApi.AuthManager
NewAuthManager creates auth manager.
func NewBasicAuthenticator ¶
func NewBasicAuthenticator(spec *authApi.LoginSpec) authApi.Authenticator
NewBasicAuthenticator returns Authenticator based on LoginSpec.
func NewKubeConfigAuthenticator ¶
func NewKubeConfigAuthenticator(spec *authApi.LoginSpec, authModes authApi.AuthenticationModes) authApi.Authenticator
NewBasicAuthenticator returns Authenticator based on LoginSpec.
func NewTokenAuthenticator ¶
func NewTokenAuthenticator(spec *authApi.LoginSpec) authApi.Authenticator
NewTokenAuthenticator returns Authenticator based on LoginSpec.
Types ¶
type AuthHandler ¶
type AuthHandler struct {
// contains filtered or unexported fields
}
AuthHandler manages all endpoints related to dashboard auth, such as login.
func NewAuthHandler ¶
func NewAuthHandler(manager authApi.AuthManager) AuthHandler
NewAuthHandler created AuthHandler instance.
func (AuthHandler) Install ¶
func (self AuthHandler) Install(ws *restful.WebService)
Install creates new endpoints for dashboard auth, such as login. It allows user to log in to dashboard using one of the supported methods. See AuthManager and Authenticator for more information.
Click to show internal directories.
Click to hide internal directories.