fix: OpenID URL changed in console, adapt to new URL

This commit is contained in:
Harshavardhana committed 2021-09-27 19:51:24 -07:00
1 parent 4519450363
commit 84dcd25a36
2 files changed
+9 -1

No files matched your search

+1 -1
View File
@@ -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)