mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-02 08:19:23 +02:00
add global jwt_issuer_format option (#5508)
Add a corresponding global setting for the existing route-level jwt_issuer_format option. The route-level option will take precedence when set to a non-empty string.
This commit is contained in:
parent
b86c9931b1
commit
ad183873f4
11 changed files with 902 additions and 781 deletions
|
@ -16,6 +16,7 @@ type evaluatorConfig struct {
|
|||
GoogleCloudServerlessAuthenticationServiceAccount string
|
||||
JWTClaimsHeaders config.JWTClaimHeaders
|
||||
JWTGroupsFilter config.JWTGroupsFilter
|
||||
DefaultJWTIssuerFormat config.JWTIssuerFormat
|
||||
}
|
||||
|
||||
// cacheKey() returns a hash over the configuration, except for the policies.
|
||||
|
@ -105,3 +106,10 @@ func WithJWTGroupsFilter(groups config.JWTGroupsFilter) Option {
|
|||
cfg.JWTGroupsFilter = groups
|
||||
}
|
||||
}
|
||||
|
||||
// WithDefaultJWTIssuerFormat sets the default JWT issuer format in the config.
|
||||
func WithDefaultJWTIssuerFormat(format config.JWTIssuerFormat) Option {
|
||||
return func(cfg *evaluatorConfig) {
|
||||
cfg.DefaultJWTIssuerFormat = format
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue