authorization

package
v0.4.16 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: BSD-3-Clause-Clear Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

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 {
	// Entity Resolution Service URL
	ERSURL string `mapstructure:"ersurl" validate:"required,http_url"`
	// OAuth Client ID
	ClientID string `mapstructure:"clientid" validate:"required"`
	// OAuth Client secret
	ClientSecret string `mapstructure:"clientsecret" validate:"required"`
	// OAuth token endpoint
	TokenEndpoint string `mapstructure:"tokenendpoint" validate:"required,http_url"`
	// 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"`
	// Rego Query
	Query string `mapstructure:"query" default:"data.opentdf.entitlements.attributes"`
}

Jump to

Keyboard shortcuts

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