OAuth: expose full upstream error (#29875)

This commit is contained in:
andig 2026-05-15 16:36:34 +02:00 • committed by GitHub
parent f41ad70ac4
commit 84d623ae12
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -8,7 +8,7 @@
<p v-if="isError">
<strong>{{ $t("authProviders.authorizationFailed") }}</strong
><br />
{{ errorMessage }}
<code class="user-select-all">{{ errorMessage }}</code>
</p>
<p v-else>
<strong>{{ $t("authProviders.authorizationSuccessful") }}</strong

View file

@ -194,7 +194,7 @@ func (a *Handler) handleCallback(w http.ResponseWriter, r *http.Request) {
// Handle the callback
if err := provider.HandleCallback(r.URL.Query()); err != nil {
a.log.ERROR.Printf("callback for provider %s failed: %v", id, err)
a.redirectToError(w, r, "callback failed")
a.redirectToError(w, r, err.Error())
return
}