Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SubjectFromToken ¶
Types ¶
type ClaimsFunc ¶
type ClaimsFunc = func(ctx context.Context, method, uri string) jwt.ClaimsValidator
func MakeClaimsFunc ¶
func MakeClaimsFunc(methods map[string][]AuthArgs) ClaimsFunc
type DeniedClaimsError ¶
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.