Documentation
¶
Index ¶
Constants ¶
View Source
const ClientIDFromCertificateHeader = "Client-Id-From-Certificate"
ClientIDFromCertificateHeader contains the name of the header containing the client id from the certificate
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Middleware ¶
type Middleware struct {
// contains filtered or unexported fields
}
Middleware authorizes only requests made from CMP - checks if the tenant from ID token matches the provider subaccount of CMP
func NewMiddleware ¶
func NewMiddleware(ctx context.Context, cfg config.TenantInfo) (Middleware, error)
NewMiddleware provides new Middleware
type TenantInfo ¶
type TenantInfo struct {
CertSubject string `json:"certSubject"`
}
TenantInfo contains tenant information
Click to show internal directories.
Click to hide internal directories.