Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrJWTInvalidClaims = echo.NewHTTPError(http.StatusUnauthorized, "invalid jwt claims")
)
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth struct {
// contains filtered or unexported fields
}
func (*Auth) Middleware ¶
func (j *Auth) Middleware(skipper middleware.Skipper, allow func(c echo.Context, subject string, claims *AuthClaims) bool) echo.MiddlewareFunc
type AuthClaims ¶
type AuthClaims struct {
jwt.StandardClaims
}
func (*AuthClaims) VerifySubject ¶
func (c *AuthClaims) VerifySubject(expected string) bool
Click to show internal directories.
Click to hide internal directories.