OAuth: expose full upstream error (#29875)
This commit is contained in:
parent
f41ad70ac4
commit
84d623ae12
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue