xacml

package
v0.0.0-...-6254df8 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsPermitDecision

func IsPermitDecision(responseXML []byte) (bool, error)

IsPermitDecision returns true just in case the given AuthZ response XML indicates authorization was granted, i.e. the response contains a "permit" decision. You get an error back if the response isn't valid XML or doesn't contain a 'Response>Result>Decision' path.

Types

type Daps

type Daps struct {
	ConnectorID string
	Issuer      string
	Membership  string
	Scopes      []string
	SecProfile  map[string]string
}

Daps holds the DAPS-specific data to do an access control check with the AuthZ server.

type KeyRock

type KeyRock struct {
	AppID        string
	AppAzfDomain string
	Roles        []string
}

KeyRock holds the KeyRock-specific data to do an access control check with the AuthZ server.

type Request

type Request struct {
	Daps          Daps
	KeyRock       KeyRock
	FiwareService string
	RequestPath   string
	RequestVerb   string
}

Request holds the data to do an access control check with the AuthZ server.

func (*Request) ToXML

func (r *Request) ToXML() string

ToXML serializes the request to XACML format.

Jump to

Keyboard shortcuts

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