From a0d1ac6baacca30e715fec93c04ea57fc671d2f6 Mon Sep 17 00:00:00 2001 From: Douglas Palmer Date: Wed, 21 Jun 2023 20:44:58 -0700 Subject: [PATCH] processGrantRequest in TokenEndPoint uses new TokenManager instead of this.tokenMananager closes #20978 --- .../org/keycloak/protocol/oidc/endpoints/TokenEndpoint.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/src/main/java/org/keycloak/protocol/oidc/endpoints/TokenEndpoint.java b/services/src/main/java/org/keycloak/protocol/oidc/endpoints/TokenEndpoint.java index 13eb542052..1cd7fcaf95 100644 --- a/services/src/main/java/org/keycloak/protocol/oidc/endpoints/TokenEndpoint.java +++ b/services/src/main/java/org/keycloak/protocol/oidc/endpoints/TokenEndpoint.java @@ -180,7 +180,7 @@ public class TokenEndpoint { @Override public Response runInternal(KeycloakSession session) { // create another instance of the endpoint to isolate each run. - TokenEndpoint other = new TokenEndpoint(session, new TokenManager(), + TokenEndpoint other = new TokenEndpoint(session, tokenManager, new EventBuilder(session.getContext().getRealm(), session, clientConnection)); // process the request in the created instance. return other.processGrantRequestInternal();