Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrMissingKid = errors.New("missing key id") ErrNoMatchingKey = errors.New("no matching key for token key id") )
Functions ¶
Types ¶
type Authenticator ¶
type Authenticator interface {
Authenicated() func(handler http.Handler) http.Handler
UserID(r *http.Request) string
}
func NewJsonWebTokenAuthenticator ¶
func NewJsonWebTokenAuthenticator(jwksURI string, errorFunc func(http.ResponseWriter, *http.Request, string, int)) (Authenticator, error)
Click to show internal directories.
Click to hide internal directories.