summaryrefslogtreecommitdiff
path: root/internal/handlers/handler_oauth_introspection.go
diff options
context:
space:
mode:
authorJames Elliott <james-d-elliott@users.noreply.github.com>2022-10-20 13:16:36 +1100
committerGitHub <noreply@github.com>2022-10-20 13:16:36 +1100
commit3aaca0604f2ed479d7f00fb5087ffed059f87a71 (patch)
treedfa3a2622b3368fac30d5eee2956b4d5fcc5fa17 /internal/handlers/handler_oauth_introspection.go
parentb1a6dae99ac5b34f065391e266ac1cd87bac5b14 (diff)
feat(oidc): implicit consent (#4080)
This adds multiple consent modes to OpenID Connect clients. Specifically it allows configuration of a new consent mode called implicit which never asks for user consent.
Diffstat (limited to 'internal/handlers/handler_oauth_introspection.go')
-rw-r--r--internal/handlers/handler_oauth_introspection.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/handlers/handler_oauth_introspection.go b/internal/handlers/handler_oauth_introspection.go
index f53e5a195..a131f7398 100644
--- a/internal/handlers/handler_oauth_introspection.go
+++ b/internal/handlers/handler_oauth_introspection.go
@@ -20,12 +20,12 @@ func OAuthIntrospectionPOST(ctx *middlewares.AutheliaCtx, rw http.ResponseWriter
oidcSession := oidc.NewSession()
- if responder, err = ctx.Providers.OpenIDConnect.Fosite.NewIntrospectionRequest(ctx, req, oidcSession); err != nil {
+ if responder, err = ctx.Providers.OpenIDConnect.NewIntrospectionRequest(ctx, req, oidcSession); err != nil {
rfc := fosite.ErrorToRFC6749Error(err)
ctx.Logger.Errorf("Introspection Request failed with error: %s", rfc.WithExposeDebug(true).GetDescription())
- ctx.Providers.OpenIDConnect.Fosite.WriteIntrospectionError(rw, err)
+ ctx.Providers.OpenIDConnect.WriteIntrospectionError(rw, err)
return
}
@@ -34,5 +34,5 @@ func OAuthIntrospectionPOST(ctx *middlewares.AutheliaCtx, rw http.ResponseWriter
ctx.Logger.Tracef("Introspection Request yeilded a %s (active: %t) requested at %s created with request id '%s' on client with id '%s'", responder.GetTokenUse(), responder.IsActive(), requester.GetRequestedAt().String(), requester.GetID(), requester.GetClient().GetID())
- ctx.Providers.OpenIDConnect.Fosite.WriteIntrospectionResponse(rw, responder)
+ ctx.Providers.OpenIDConnect.WriteIntrospectionResponse(rw, responder)
}