fix: use browser redirect URL for IDP callback (#12689)

if browser_redirect_url is set use that for IDP callback
automatically, if we do not have to set REDIRECT_URI
for OpenID callback URL.
This commit is contained in:
Harshavardhana
2021-07-12 15:21:07 -07:00
committed by GitHub
parent c438eda624
commit a655e7f820
2 changed files with 4 additions and 0 deletions

View File

@@ -428,6 +428,7 @@ func handleCommonEnvVars() {
err := fmt.Errorf("URL contains unexpected resources, expected URL to be of http(s)://minio.example.com format: %v", u)
logger.Fatal(err, "Invalid MINIO_BROWSER_REDIRECT value is environment variable")
}
u.Path = "" // remove any path component such as `/`
globalBrowserRedirectURL = u
}
}