mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-29 00:14:35 +08:00
modified log
This commit is contained in:
parent
c402010659
commit
a51d145e5e
1 changed files with 2 additions and 2 deletions
|
@ -63,11 +63,11 @@ func InitializeAuthProvider() string {
|
||||||
var authInfo = servercfg.GetAuthProviderInfo()
|
var authInfo = servercfg.GetAuthProviderInfo()
|
||||||
var serverConn = servercfg.GetAPIHost()
|
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)
|
|
||||||
serverConn = "http://" + serverConn
|
serverConn = "http://" + serverConn
|
||||||
|
logic.Log("localhost OAuth detected, proceeding with insecure http redirect: "+serverConn+")", 1)
|
||||||
} else {
|
} else {
|
||||||
logic.Log("external OAuth detected, proceeding with https redirect", 1)
|
|
||||||
serverConn = "https://" + serverConn
|
serverConn = "https://" + serverConn
|
||||||
|
logic.Log("external OAuth detected, proceeding with https redirect: ("+serverConn+")", 1)
|
||||||
}
|
}
|
||||||
|
|
||||||
functions[init_provider].(func(string, string, string))(serverConn+"/api/oauth/callback", authInfo[1], authInfo[2])
|
functions[init_provider].(func(string, string, string))(serverConn+"/api/oauth/callback", authInfo[1], authInfo[2])
|
||||||
|
|
Loading…
Add table
Reference in a new issue