Documentation
¶
Index ¶
- Constants
- Variables
- func RequireAuthN(next http.Handler, tokenVerifier AccessTokenValidator, ...) http.Handler
- func RequireJWT(next http.Handler, tokenVerifier AccessTokenValidator, audiences ...string) http.Handler
- func RequireSelfOrRole(next http.Handler, peopleStore people.Store, roleMappings oauth2.RoleMappings, ...) http.Handler
- type AccessTokenValidator
Constants ¶
View Source
const ErrorAccessDenied = "access_denied"
Variables ¶
View Source
var ( ErrMissingKid = errors.New("missing key id") ErrMatchingKeyNotFound = errors.New("matching key not found") )
Functions ¶
func RequireAuthN ¶ added in v0.8.0
func RequireJWT ¶
Types ¶
type AccessTokenValidator ¶
type AccessTokenValidator interface {
Validate(rawToken string, audiences ...string) (string, error)
}
func NewAccessTokenValidator ¶
func NewAccessTokenValidator(keySetProvider keyset.Provider) AccessTokenValidator
Click to show internal directories.
Click to hide internal directories.