From 77f83d7f65f5997db2d4afeeb4a3ab4c441482df Mon Sep 17 00:00:00 2001 From: Martin Kanis Date: Tue, 22 Oct 2024 14:06:58 +0200 Subject: [PATCH] Grant type urn:ietf:params:oauth:grant-type:uma-ticket token service endpoint returns NullPointerException Closes #34176 Signed-off-by: Martin Kanis --- services/src/main/java/org/keycloak/services/util/DPoPUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/src/main/java/org/keycloak/services/util/DPoPUtil.java b/services/src/main/java/org/keycloak/services/util/DPoPUtil.java index d3955e34ab..e14e79ffca 100644 --- a/services/src/main/java/org/keycloak/services/util/DPoPUtil.java +++ b/services/src/main/java/org/keycloak/services/util/DPoPUtil.java @@ -154,7 +154,7 @@ public class DPoPUtil { } HttpRequest request = keycloakSession.getContext().getHttpRequest(); - final boolean isClientRequiresDpop = clientConfig.isUseDPoP(); + final boolean isClientRequiresDpop = clientConfig != null && clientConfig.isUseDPoP(); final boolean isDpopHeaderPresent = request.getHttpHeaders().getHeaderString(DPoPUtil.DPOP_HTTP_HEADER) != null; if (!isClientRequiresDpop && !isDpopHeaderPresent) { return Optional.empty();