Documentation
¶
Index ¶
- Constants
- 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 SetWellKnownConfigHandler(cfg *builder.API, mux *http.ServeMux) error
- func UIHandler(consoleFS http.FileSystem) http.Handler
- func WellKnownConfigHandler(endpoint *url.URL) func(w http.ResponseWriter, r *http.Request)
- type CfgV2Response
- type TopazCfg
- type TopazCfgV1
- type TopazCfgV2
- type WellKnownConfig
Constants ¶
View Source
const ( AuthTypeAnonymous string = "anonymous" AuthTypeAPIKey string = "apiKey" )
View Source
const AuthZENConfiguration string = `/.well-known/authzen-configuration`
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 SetWellKnownConfigHandler ¶ added in v0.32.60
func WellKnownConfigHandler ¶ added in v0.32.60
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 WellKnownConfig ¶ added in v0.32.60
type WellKnownConfig struct {
PolicyDecisionPoint string `json:"policy_decision_point"` //nolint: tagliatelle
AccessEvaluationEndpoint string `json:"access_evaluation_endpoint"` //nolint: tagliatelle
AccessEvaluationsEndpoint string `json:"access_evaluations_endpoint"` //nolint: tagliatelle
SearchSubjectEndpoint string `json:"search_subject_endpoint"` //nolint: tagliatelle
SearchResourceEndpoint string `json:"search_resource_endpoint"` //nolint: tagliatelle
SearchActionEndpoint string `json:"search_action_endpoint"` //nolint: tagliatelle
}
Click to show internal directories.
Click to hide internal directories.