Skip to content
Snippets Groups Projects
Commit 9ded75b5 authored by ale's avatar ale
Browse files

Add the URL prefix on the main webapp

parent 50b09416
No related branches found
No related tags found
No related merge requests found
...@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment