authorizer

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 31, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package authorizer provides authorization handlers to the server.

Index

Constants

View Source
const SystemAuthzPath = "data.system.authz.allow"

SystemAuthzPath is the path of the document that defines auth/z decisions for OPA itself.

Variables

This section is empty.

Functions

func NewBasic

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

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL