summaryrefslogtreecommitdiff
path: root/internal/handlers/handler_oauth_introspection.go
diff options
context:
space:
mode:
authorJames Elliott <james-d-elliott@users.noreply.github.com>2023-08-06 11:52:37 +1000
committerGitHub <noreply@github.com>2023-08-06 11:52:37 +1000
commite250ad31ebb4cf029ab5e02c67e79ca0d0d4dc94 (patch)
treec392cf7bc95d0051e635d85b085177f6b99d948f /internal/handlers/handler_oauth_introspection.go
parent412e0af7e980b8fbf093fb9fdbb8f52435ce957a (diff)
fix(oidc): refresh flow scope parameter ignored (#5782)
This fixes an issue where the scope parameter is ignored in the refresh token flow. Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
Diffstat (limited to 'internal/handlers/handler_oauth_introspection.go')
-rw-r--r--internal/handlers/handler_oauth_introspection.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/internal/handlers/handler_oauth_introspection.go b/internal/handlers/handler_oauth_introspection.go
index 3fa1882e5..6ef375986 100644
--- a/internal/handlers/handler_oauth_introspection.go
+++ b/internal/handlers/handler_oauth_introspection.go
@@ -31,9 +31,7 @@ func OAuthIntrospectionPOST(ctx *middlewares.AutheliaCtx, rw http.ResponseWriter
ctx.Logger.Debugf("Introspection Request with id '%s' is being processed", requestID)
if responder, err = ctx.Providers.OpenIDConnect.NewIntrospectionRequest(ctx, req, oidcSession); err != nil {
- rfc := fosite.ErrorToRFC6749Error(err)
-
- ctx.Logger.Errorf("Introspection Request with id '%s' failed with error: %s", requestID, rfc.WithExposeDebug(true).GetDescription())
+ ctx.Logger.Errorf("Introspection Request with id '%s' failed with error: %s", requestID, oidc.ErrorToDebugRFC6749Error(err))
ctx.Providers.OpenIDConnect.WriteIntrospectionError(ctx, rw, err)