Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAuthenticationMiddleware ¶
func NewAuthenticationMiddleware(cfg Config, logger klog.Logger) middleware.Func
AuthenticateTenant validates the Bearer Token and attaches the TenantID to the request
Types ¶
type Config ¶
type Config struct {
JwtSecret string
ExtraHeaders string
TenantName string
TenantIDClaim string
JwksURL string
JwksRefreshEnabled bool
JwksRefreshInterval int
JwksRefreshTimeout int
}
Config for a gateway
func (*Config) RegisterFlags ¶
RegisterFlags adds the flags required to config this package's Config struct
Click to show internal directories.
Click to hide internal directories.