opa: github.com/open-policy-agent/opa/server/authorizer Index | Files

package authorizer

import "github.com/open-policy-agent/opa/server/authorizer"

Package authorizer provides authorization handlers to the server.


Package Files


func Decision Uses

func Decision(ref func() ast.Ref) func(*Basic)

Decision returns an argument that sets the path of the authorization decision to query.

func NewBasic Uses

func NewBasic(inner http.Handler, compiler func() *ast.Compiler, store storage.Store, opts ...func(*Basic)) http.Handler

NewBasic returns a new Basic object.

func Runtime Uses

func Runtime(term *ast.Term) func(*Basic)

Runtime returns an argument that sets the runtime on the authorizer.

type Basic Uses

type Basic struct {
    // contains filtered or unexported fields

Basic provides policy-based authorization over incoming requests.

func (*Basic) ServeHTTP Uses

func (h *Basic) ServeHTTP(w http.ResponseWriter, r *http.Request)

Package authorizer imports 9 packages (graph) and is imported by 6 packages. Updated 2019-06-03. Refresh now. Tools for package owners.