Grant type urn:ietf:params:oauth:grant-type:uma-ticket token service endpoint returns NullPointerException

Closes #34176

Signed-off-by: Martin Kanis <mkanis@redhat.com>
This commit is contained in:
Martin Kanis 2024-10-22 14:06:58 +02:00 committed by Pedro Igor
parent 34f090143c
commit 77f83d7f65

View file

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