Browse Source

changed oauth to use SERVER_HTTP_HOST or SERVER_HOST vars

0xdcarns 3 years ago
parent
commit
c402010659
1 changed files with 1 additions and 1 deletions
  1. 1 1
      auth/auth.go

+ 1 - 1
auth/auth.go

@@ -61,7 +61,7 @@ func InitializeAuthProvider() string {
 		return ""
 		return ""
 	}
 	}
 	var authInfo = servercfg.GetAuthProviderInfo()
 	var authInfo = servercfg.GetAuthProviderInfo()
-	var serverConn = servercfg.GetAPIConnString()
+	var serverConn = servercfg.GetAPIHost()
 	if strings.Contains(serverConn, "localhost") || strings.Contains(serverConn, "127.0.0.1") {
 	if strings.Contains(serverConn, "localhost") || strings.Contains(serverConn, "127.0.0.1") {
 		logic.Log("localhost OAuth detected, proceeding with insecure http redirect", 1)
 		logic.Log("localhost OAuth detected, proceeding with insecure http redirect", 1)
 		serverConn = "http://" + serverConn
 		serverConn = "http://" + serverConn