package
Version:
v0.0.0-...-1643d90
Opens a new window with list of versions in this module.
Published: Jan 26, 2020
License: UPL-1.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
const (
HOST_PROP = "host"
ADS_PORT_PROP = "ads.port"
IS_SECURE_PROP = "is.secure"
)
type Principal struct {
Type string `json:"type,omitempty"`
Name string `json:"name,omitempty"`
IDD string `json:"idd,omitempty"`
}
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 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"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.