Documentation ¶
Overview ¶
Package authorizer provides authorization handlers to the server.
Index ¶
- func Decision(ref func() ast.Ref) func(*Basic)
- func GetBodyOnContext(ctx context.Context) (interface{}, bool)
- func NewBasic(inner http.Handler, compiler func() *ast.Compiler, store storage.Store, ...) http.Handler
- func Runtime(term *ast.Term) func(*Basic)
- func SetBodyOnContext(ctx context.Context, x interface{}) context.Context
- type Basic
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Decision ¶ added in v0.10.0
Decision returns an argument that sets the path of the authorization decision to query.
func GetBodyOnContext ¶ added in v0.25.2
GetBodyOnContext returns the parsed input from the request context if it exists. The authorizer saves the parsed input on the context when it runs.
func NewBasic ¶
func NewBasic(inner http.Handler, compiler func() *ast.Compiler, store storage.Store, opts ...func(*Basic)) http.Handler
NewBasic returns a new Basic object.
Types ¶
Click to show internal directories.
Click to hide internal directories.