Commit 9ded75b5 authored by ale's avatar ale

Add the URL prefix on the main webapp

parent 50b09416
Pipeline #5400 passed with stages
in 2 minutes and 32 seconds
...@@ -144,8 +144,8 @@ func New(loginService *LoginService, authClient authclient.Client, config *Confi ...@@ -144,8 +144,8 @@ func New(loginService *LoginService, authClient authclient.Client, config *Confi
// handler, optional CSRF protection, custom HTTP headers, // handler, optional CSRF protection, custom HTTP headers,
// etc. // etc.
mainh := http.NewServeMux() mainh := http.NewServeMux()
mainh.HandleFunc("/logout", h.handleLogout) mainh.HandleFunc(h.urlFor("/logout"), h.handleLogout)
mainh.HandleFunc("/", h.handleGrantTicket) mainh.HandleFunc(h.urlFor("/"), h.handleGrantTicket)
loginh := login.New(mainh, devMgr, authClient, loginh := login.New(mainh, devMgr, authClient,
config.AuthService, config.U2FAppID, urlPrefix, config.AuthService, config.U2FAppID, urlPrefix,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment