OAuth: clarify callback window can be closed (#25789)

This commit is contained in:
andig 2025-12-03 20:30:40 +01:00 • committed by GitHub
parent aeaa1807b5
commit cd5f4eccee
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 46 additions and 2 deletions

View file

@ -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)
}