authz

package
v0.0.0-...-1643d90 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2020 License: UPL-1.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HOST_PROP      = "host"
	ADS_PORT_PROP  = "ads.port"
	IS_SECURE_PROP = "is.secure"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Principal

type Principal struct {
	Type string `json:"type,omitempty"`
	Name string `json:"name,omitempty"`
	IDD  string `json:"idd,omitempty"`
}

type RequestContext

type RequestContext struct {
	Subject     *Subject               `json:"subject,omitempty"`
	ServiceName string                 `json:"serviceName,omitempty"`
	Resource    string                 `json:"resource,omitempty"`
	Action      string                 `json:"action,omitempty"`
	Attributes  map[string]interface{} `json:"attributes,omitempty"`
}

type Subject

type Subject struct {
	Principals []*Principal           `json:"principals,omitempty"`
	Attributes map[string]interface{} `json:"attributes,omitempty"`
	TokenType  string                 `json:"tokenType,omitempty"`
	Token      string                 `json:"token,omitempty"`
	Asserted   bool                   `json:"asserted,omitempty"`
}

Jump to

Keyboard shortcuts

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