Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JWT ¶
type JWT interface { AddValidator(iss string, issuer Validator) error ClearValidators() Validators() []string // Middleware returns an echo middleware AccessMiddleware() echo.MiddlewareFunc RefreshMiddleware() echo.MiddlewareFunc // LoginHandler is an echo route handler for retrieving a JWT LoginHandler(c echo.Context) error // RefreshHandle is an echo route handler for refreshing a JWT RefreshHandler(c echo.Context) error }
JWT provides access to a JWT provider
type Validator ¶
type Validator interface { String() string // Validate returns true if it identified itself as validator for // that request. False if it doesn't handle this request. The string // is the username. An error is only returned if it identified itself // as validator but there was an error during validation. Validate(c echo.Context) (bool, string, error) Cancel() }
func NewAuth0Validator ¶
func NewLocalValidator ¶
Click to show internal directories.
Click to hide internal directories.