Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SubjectFromToken ¶
Types ¶
type ClaimsFunc ¶
func MakeClaimsFunc ¶
func MakeClaimsFunc(methods map[string][]AuthArgs) ClaimsFunc
type DeniedClaimsError ¶
type DeniedClaimsError struct { jwt.MapClaims Err error }
func (DeniedClaimsError) Error ¶
func (c DeniedClaimsError) Error() string
func (DeniedClaimsError) Unwrap ¶
func (c DeniedClaimsError) Unwrap() error
func (DeniedClaimsError) Validate ¶
func (c DeniedClaimsError) Validate() error
type Interceptor ¶
func NewInterceptorWithValidator ¶
func NewInterceptorWithValidator(validator Validator, auths map[string][]AuthArgs, whiteList ...RequestMatcher) Interceptor
NewInterceptor authorizes HTTP request with validator.
type RequestMatcher ¶
RequestMatcher allows request without token validation.
Click to show internal directories.
Click to hide internal directories.