@@ -97,6 +97,7 @@ type config struct {
9797 rbacConfigPath string
9898 tenantsConfigPath string
9999
100+ auth authConfig
100101 debug debugConfig
101102 server serverConfig
102103 tls tlsConfig
@@ -108,6 +109,10 @@ type config struct {
108109 internalTracing internalTracingConfig
109110}
110111
112+ type authConfig struct {
113+ skipClientIDCheck bool
114+ }
115+
111116type debugConfig struct {
112117 mutexProfileFraction int
113118 blockProfileRate int
@@ -360,8 +365,10 @@ func main() {
360365 tenantsCfg .Tenants [i ] = nil
361366 continue
362367 }
363-
364368 t .OIDC .config = oidcConfig
369+ if cfg .auth .skipClientIDCheck {
370+ t .OIDC .config [authentication .SkipClientIDCheckConfigKey ] = true
371+ }
365372 }
366373
367374 if t .MTLS != nil {
@@ -1136,6 +1143,7 @@ func parseFlags() (config, error) {
11361143 "The log filtering level. Options: 'error', 'warn', 'info', 'debug'." )
11371144 flag .StringVar (& cfg .logFormat , "log.format" , logger .LogFormatLogfmt ,
11381145 "The log format to use. Options: 'logfmt', 'json'." )
1146+ flag .BoolVar (& cfg .auth .skipClientIDCheck , "oidc.skip-client-id-check" , false , "Skip checking audience field against client ID on tokens." )
11391147 flag .StringVar (& cfg .internalTracing .serviceName , "internal.tracing.service-name" , "observatorium_api" ,
11401148 "The service name to report to the tracing backend." )
11411149 flag .StringVar (& cfg .internalTracing .endpoint , "internal.tracing.otlp-http-endpoint" , "" ,
0 commit comments