package authorizer
import "github.com/open-policy-agent/opa/server/authorizer"
Package authorizer provides authorization handlers to the server.
Index ¶
- Constants
- func NewBasic(inner http.Handler, compiler func() *ast.Compiler, store storage.Store) http.Handler
- type Basic
Constants ¶
const SystemAuthzPath = "data.system.authz.allow"
SystemAuthzPath is the path of the document that defines auth/z decisions for OPA itself.
Functions ¶
func NewBasic ¶
NewBasic returns a new Basic object.
Types ¶
type Basic ¶
type Basic struct {
// contains filtered or unexported fields
}
Basic provides policy-based authorization over incoming requests.
func (*Basic) ServeHTTP ¶
func (h *Basic) ServeHTTP(w http.ResponseWriter, r *http.Request)
Source Files ¶
- Version
- v0.5.7
- Published
- Sep 8, 2017
- Platform
- js/wasm
- Imports
- 9 packages
- Last checked
- 2 minutes ago –
Tools for package owners.