OAuth: clarify callback window can be closed (#25789)
This commit is contained in:
parent
aeaa1807b5
commit
cd5f4eccee
5 changed files with 46 additions and 2 deletions
|
|
@ -54,7 +54,7 @@ func (a *Handler) run(paramC chan<- util.Param) {
|
|||
res := make(map[string]*AuthProvider)
|
||||
for id, provider := range a.providers {
|
||||
res[provider.DisplayName()] = &AuthProvider{
|
||||
ID: url.QueryEscape(id),
|
||||
ID: id,
|
||||
Authenticated: provider.Authenticated(),
|
||||
}
|
||||
}
|
||||
|
|
@ -182,5 +182,5 @@ func (a *Handler) handleCallback(w http.ResponseWriter, r *http.Request) {
|
|||
return
|
||||
}
|
||||
|
||||
http.Redirect(w, r, "/", http.StatusFound)
|
||||
http.Redirect(w, r, "/#/config?callbackCompleted="+url.QueryEscape(id), http.StatusFound)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue