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

@@ -157,6 +157,9 @@ func sortIPs(ipList []string) []string {
}
func getConsoleEndpoints() (consoleEndpoints []string) {
if globalBrowserRedirectURL != nil {
return []string{globalBrowserRedirectURL.String()}
}
var ipList []string
if globalMinioConsoleHost == "" {
ipList = sortIPs(mustGetLocalIP4().ToSlice())