processGrantRequest in TokenEndPoint uses new TokenManager instead of this.tokenMananager

closes #20978
This commit is contained in:
Douglas Palmer 2023-06-21 20:44:58 -07:00 committed by Marek Posolda
parent aff6cc1cbd
commit a0d1ac6baa

View file

@ -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();