diff options
| author | James Elliott <james-d-elliott@users.noreply.github.com> | 2022-04-25 10:31:05 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-25 10:31:05 +1000 |
| commit | abf1c86ab9d3204b0bbeb1628574430c6da166d0 (patch) | |
| tree | 93bdc1dea13738949b5580ca2407ca4fe01f374e /internal/handlers/handler_oauth_introspection.go | |
| parent | 038ec1d2cf8145256350197eb5fcaa2d56ef7783 (diff) | |
fix(oidc): subject generated for anonymous users (#3238)
Fix and issue that would prevent a correct ID Token from being generated for users who start off anonymous. This also avoids generating one in the first place for anonymous users.
Diffstat (limited to 'internal/handlers/handler_oauth_introspection.go')
| -rw-r--r-- | internal/handlers/handler_oauth_introspection.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/handlers/handler_oauth_introspection.go b/internal/handlers/handler_oauth_introspection.go index 990e8c5c2..f53e5a195 100644 --- a/internal/handlers/handler_oauth_introspection.go +++ b/internal/handlers/handler_oauth_introspection.go @@ -23,7 +23,7 @@ func OAuthIntrospectionPOST(ctx *middlewares.AutheliaCtx, rw http.ResponseWriter if responder, err = ctx.Providers.OpenIDConnect.Fosite.NewIntrospectionRequest(ctx, req, oidcSession); err != nil { rfc := fosite.ErrorToRFC6749Error(err) - ctx.Logger.Errorf("Introspection Request failed with error: %s", rfc.GetDescription()) + ctx.Logger.Errorf("Introspection Request failed with error: %s", rfc.WithExposeDebug(true).GetDescription()) ctx.Providers.OpenIDConnect.Fosite.WriteIntrospectionError(rw, err) |
