Documentation ¶
Index ¶
Constants ¶
View Source
const ( PSKClientIdHeader = "x-rh-cloud-connector-client-id" PSKOrgIdHeader = "x-rh-cloud-connector-org-id" PSKAccountHeader = "x-rh-cloud-connector-account" PSKHeader = "x-rh-cloud-connector-psk" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthMiddleware ¶
type AuthMiddleware struct { Secrets map[string]interface{} IdentityAuth func(http.Handler) http.Handler RequiredTenantIdentifier RequiredTenantIdentifier }
func (*AuthMiddleware) Authenticate ¶
func (amw *AuthMiddleware) Authenticate(next http.Handler) http.Handler
Authenticate determines which authentication method should be used, and delegates identity header auth to the identity middleware
type MetricsMiddleware ¶
type MetricsMiddleware struct { }
MetricsMiddleware allows the passage of parameters into the metrics middleware
func (*MetricsMiddleware) RecordHTTPMetrics ¶
func (mw *MetricsMiddleware) RecordHTTPMetrics(next http.Handler) http.Handler
type Principal ¶
Principal interface can be implemented and expanded by various principal objects (type depends on middleware being used)
type RequiredTenantIdentifier ¶
type RequiredTenantIdentifier int
const ( Account RequiredTenantIdentifier = iota OrgID )
Click to show internal directories.
Click to hide internal directories.