mirror of
https://github.com/unmojang/drasl.git
synced 2025-08-03 02:46:03 -04:00
Log OIDC code exchange error
This commit is contained in:
parent
415bff18c0
commit
3c5a3b59ed
2
front.go
2
front.go
@ -16,6 +16,7 @@ import (
|
||||
"gorm.io/gorm"
|
||||
"html/template"
|
||||
"io"
|
||||
"log"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"path"
|
||||
@ -756,6 +757,7 @@ func FrontOIDCCallback(app *App) func(c echo.Context) error {
|
||||
}
|
||||
tokens, err := rp.CodeExchange[*oidc.IDTokenClaims](context.Background(), c.FormValue("code"), oidcProvider.RelyingParty, opts...)
|
||||
if err != nil {
|
||||
log.Printf("OIDC code exchange failed with provider %s: %s", oidcProvider.Config.Name, err)
|
||||
return NewWebError(failureURL, "OIDC code exchange failed.")
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user