Documentation ¶
Index ¶
- Variables
- func AuthorizersHandler(confServices *TopazCfg) func(w http.ResponseWriter, r *http.Request)
- func ConfigHandler(confServices *TopazCfg) func(w http.ResponseWriter, r *http.Request)
- func ConfigHandlerV2(confServices *TopazCfg) http.Handler
- func UIHandler(consoleFS http.FileSystem) http.Handler
- type CfgV2Response
- type TopazCfg
- type TopazCfgV1
- type TopazCfgV2
Constants ¶
This section is empty.
Variables ¶
View Source
var ( AuthEnabled = header.CtxKey("AuthEnabled") AuthenticatedUser = header.CtxKey("AuthenticatedUser") )
Functions ¶
func AuthorizersHandler ¶
func AuthorizersHandler(confServices *TopazCfg) func(w http.ResponseWriter, r *http.Request)
func ConfigHandler ¶
func ConfigHandler(confServices *TopazCfg) func(w http.ResponseWriter, r *http.Request)
func ConfigHandlerV2 ¶
Types ¶
type CfgV2Response ¶
type CfgV2Response struct { ReadOnly bool `json:"readOnly"` AuthenticationType string `json:"authenticationType"` Configs []*TopazCfgV2 `json:"configs"` }
type TopazCfg ¶
type TopazCfg struct { AuthorizerServiceURL string `json:"authorizerServiceUrl"` AuthorizerAPIKey string `json:"authorizerApiKey"` DirectoryServiceURL string `json:"directoryServiceUrl"` DirectoryAPIKey string `json:"directoryApiKey"` DirectoryTenantID string `json:"directoryTenantId"` DirectoryReaderServiceURL string `json:"directoryReaderServiceUrl,omitempty"` DirectoryWriterServiceURL string `json:"directoryWriterServiceUrl,omitempty"` DirectoryImporterServiceURL string `json:"directoryImporterServiceUrl,omitempty"` DirectoryExporterServiceURL string `json:"directoryExporterServiceUrl,omitempty"` DirectoryModelServiceURL string `json:"directoryModelServiceUrl,omitempty"` ConsoleURL string `json:"-"` }
type TopazCfgV1 ¶
type TopazCfgV1 struct { AsertoDirectoryURL string `json:"asertoDirectoryUrl"` AuthorizerServiceURL string `json:"authorizerServiceUrl"` AuthorizerAPIKey string `json:"authorizerApiKey"` DirectoryAPIKey string `json:"directoryApiKey"` DirectoryTenantID string `json:"directoryTenantId"` AsertoDirectoryReaderURL string `json:"asertoDirectoryReaderUrl,omitempty"` AsertoDirectoryWriterURL string `json:"asertoDirectoryWriterUrl,omitempty"` AsertoDirectoryModelURL string `json:"asertoDirectoryModelUrl,omitempty"` }
Click to show internal directories.
Click to hide internal directories.