Documentation ¶
Overview ¶
Package auth0jwt is a modification of the Auth0 provided Go tutorial: https://auth0.com/docs/quickstart/backend/golang As you may guess that has several issues, but a lot of what's here has been taken verbatim.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMiddleware ¶
func NewMiddleware(cfg Config) echo.MiddlewareFunc
Types ¶
type Config ¶
type Config struct { // Aud is used to veirfy the 'aud' claim. It's the identifier of the API in Auth0. Aud string // Iss is used to verify the 'iss' claim. Iss string // JwksPath is the path to the file like "https://my-application.auth0.com/.well-known/jwks.json". // See https://auth0.com/docs/tokens/concepts/jwks JwksPath string }
type JSONWebKeys ¶
type Jwks ¶
type Jwks struct {
Keys []JSONWebKeys `json:"keys"`
}
Click to show internal directories.
Click to hide internal directories.