Null key for a Map not allowed in JSON on the Client Scope

Solution Verified - Updated -

Issue

  • After create a Client Scope and configure Mappers, the error show on the log.
DEBUG [org.keycloak.services.resources.admin.ClientScopeEvaluateResource] (default task-81) generateExampleAccessToken invoked. User: userXYZ, Scope param: openid group1

OR

ERROR [org.keycloak.services.error.KeycloakErrorHandler] (default task-13) Uncaught server error: com.fasterxml.jackson.databind.JsonMappingException: Null key for a Map not allowed in JSON (use a converting NullKeySerializer?) (through reference chain: org.keycloak.representations.AccessToken["[anySetter]"]->java.util.HashMap["null"])

Environment

  • Red Hat Single Sign-On (RH-SSO)
    • 7
  • Openshift (RH-SSO image for Openshift)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content