Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth0Authenticator ¶
type Auth0Authenticator struct { Request *http.Request AllowedScopes []string Validator func(ctx context.Context, tokenString string) (interface{}, error) }
func NewAuth0Authenticator ¶
func (*Auth0Authenticator) Validate ¶
func (a *Auth0Authenticator) Validate() error
type CustomClaims ¶
type CustomClaims struct {
Scopes string `json:"scope"`
}
CustomClaims contains custom data we want from the token.
func (CustomClaims) HasScope ¶
func (c CustomClaims) HasScope(expectedScope string) bool
HasScope checks whether our claims have a specific scope.
Click to show internal directories.
Click to hide internal directories.