Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrEmptyKeySet = errors.New("key set is empty")
Functions ¶
func KeySetFromURI ¶
func KeySetFromURI(jwksURI string) (*jose.JSONWebKeySet, error)
func RequireToken ¶
func RequireToken(options RequireTokenOptions) func(http.Handler) http.Handler
Types ¶
type RequireTokenOptions ¶
type RequireTokenOptions struct {
KeySet *jose.JSONWebKeySet
ErrorFunc func(http.ResponseWriter, string, int)
}
Click to show internal directories.
Click to hide internal directories.