authorization

package
v0.4.25 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: BSD-3-Clause-Clear Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const EntityIDPrefix string = "entity_idx_"

Variables

This section is empty.

Functions

func NewRegistration

func NewRegistration() serviceregistry.Registration

Types

type AuthorizationService

type AuthorizationService struct {
	authorization.UnimplementedAuthorizationServiceServer
	// contains filtered or unexported fields
}

func (*AuthorizationService) GetDecisions

func (*AuthorizationService) GetDecisionsByToken added in v0.4.3

func (AuthorizationService) IsReady added in v0.4.2

func (as AuthorizationService) IsReady(ctx context.Context) error

TODO: Not sure what we want to check here?

type Config added in v0.4.7

type Config struct {
	// Custom Rego Policy To Load
	Rego CustomRego `mapstructure:"rego"`
}

type CustomRego added in v0.4.10

type CustomRego struct {
	// Path to Rego file
	Path string `mapstructure:"path" json:"path"`
	// Rego Query
	Query string `mapstructure:"query" json:"query" default:"data.opentdf.entitlements.attributes"`
}

Jump to

Keyboard shortcuts

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