Added CONFIGURATOR_JWKS_URL var for key verification

This commit is contained in:
David Allen 2024-07-03 11:41:17 -06:00
parent e15018072f
commit 7836aef5c3
No known key found for this signature in database
GPG key ID: 717C593FF60A2ACC

View file

@ -55,4 +55,14 @@ func initConfig() {
} else {
config = configurator.NewConfig()
}
//
// set environment variables to override config values
//
// set the JWKS url if we find the CONFIGURATOR_JWKS_URL environment variable
jwksUrl := os.Getenv("CONFIGURATOR_JWKS_URL")
if jwksUrl != "" {
config.Server.Jwks.Uri = jwksUrl
}
}