handlers

package
v0.32.26 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

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

func ConfigHandlerV2(confServices *TopazCfg) http.Handler

func UIHandler

func UIHandler(consoleFS http.FileSystem) http.Handler

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"`
}

type TopazCfgV2

type TopazCfgV2 struct {
	Type    string `json:"configType"`
	Name    string `json:"name"`
	Address string `json:"address"`
	*TopazCfg
}

Jump to

Keyboard shortcuts

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