decisionHandler

package
v0.64.1 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package decisionHandler maps between AuthZen requests and the HexaOPA IDQL based engine

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DecisionHandler

type DecisionHandler struct {
	// contains filtered or unexported fields
}

func NewDecisionHandler

func NewDecisionHandler() *DecisionHandler

func (*DecisionHandler) HealthCheck

func (d *DecisionHandler) HealthCheck() bool

func (*DecisionHandler) ProcessDecision

func (d *DecisionHandler) ProcessDecision(authRequest infoModel2.AuthRequest) (*infoModel2.SimpleResponse, error, int)

ProcessDecision takes an AuthZen AuthRequest, generates a Hexa OPA input object that combines resource, subject, and request information and calls the HexaOPA decision engine and parses the results.

func (*DecisionHandler) ProcessQueryDecision

ProcessQueryDecision takes an AuthZen Query request processes each query into an HexaOPA decision and returns a response

func (*DecisionHandler) ProcessUploadOpa

func (d *DecisionHandler) ProcessUploadOpa() error

Jump to

Keyboard shortcuts

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