Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrMissingClaims = errors.Forbidden(reason, "missing authz claims") ErrInvalidClaims = errors.Forbidden(reason, "invalid authz claims") )
Functions ¶
func FromContext ¶
func FromContext(ctx context.Context) (*authz.AuthClaims, bool)
func NewContext ¶
func Server ¶
func Server(authorizer authz.Authorizer, opts ...Option) middleware.Middleware
Types ¶
Click to show internal directories.
Click to hide internal directories.