Added CONFIGURATOR_JWKS_URL var for key verification
This commit is contained in:
parent
e15018072f
commit
7836aef5c3
1 changed files with 10 additions and 0 deletions
10
cmd/root.go
10
cmd/root.go
|
|
@ -55,4 +55,14 @@ func initConfig() {
|
||||||
} else {
|
} else {
|
||||||
config = configurator.NewConfig()
|
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
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue