mirror of https://github.com/minio/minio.git
fix: OpenID URL changed in console, adapt to new URL
This commit is contained in:
parent
4519450363
commit
84dcd25a36
|
@ -138,7 +138,7 @@ func minioConfigToConsoleFeatures() {
|
|||
}
|
||||
// if IDP is enabled, set IDP environment variables
|
||||
if globalOpenIDConfig.URL != nil {
|
||||
os.Setenv("CONSOLE_IDP_URL", globalOpenIDConfig.DiscoveryDoc.Issuer)
|
||||
os.Setenv("CONSOLE_IDP_URL", globalOpenIDConfig.URL.String())
|
||||
os.Setenv("CONSOLE_IDP_CLIENT_ID", globalOpenIDConfig.ClientID)
|
||||
os.Setenv("CONSOLE_IDP_SECRET", globalOpenIDConfig.ClientSecret)
|
||||
os.Setenv("CONSOLE_IDP_HMAC_SALT", globalDeploymentID)
|
||||
|
|
|
@ -596,6 +596,14 @@ func serverMain(ctx *cli.Context) {
|
|||
}()
|
||||
}
|
||||
|
||||
if serverDebugLog {
|
||||
logger.Info("== DEBUG Mode enabled ==")
|
||||
logger.Info("Currently set environment settings:")
|
||||
for _, v := range os.Environ() {
|
||||
logger.Info(v)
|
||||
}
|
||||
logger.Info("======")
|
||||
}
|
||||
<-globalOSSignalCh
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue