Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ErrInvalidCredentials is an error raised when credentials for a user are invalid ErrInvalidCredentials = baasapi.Error("Invalid credentials") // ErrAuthDisabled is an error raised when trying to access the authentication baask8ss // when the server has been started with the --no-auth flag ErrAuthDisabled = baasapi.Error("Authentication is disabled") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct { *mux.Router UserService baasapi.UserService CryptoService baasapi.CryptoService JWTService baasapi.JWTService LDAPService baasapi.LDAPService SettingsService baasapi.SettingsService TeamService baasapi.TeamService TeamMembershipService baasapi.TeamMembershipService ExtensionService baasapi.ExtensionService // contains filtered or unexported fields }
Handler is the HTTP handler used to handle authentication operations.
func NewHandler ¶
func NewHandler(bouncer *security.RequestBouncer, rateLimiter *security.RateLimiter, authDisabled bool) *Handler
NewHandler creates a handler to manage authentication operations.
Click to show internal directories.
Click to hide internal directories.