auth

package
v0.0.0-...-b1a156a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 12, 2020 License: Zlib Imports: 12 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL