Multivalued strings can't be set for custom SPI implementation in RHBK

Solution Unverified - Updated -

Issue

  • Configured a custom SPI implementation (an extension of UserAttributeMapper) that was working in RHSSO, but cannot be configured in RHBK.
    • Error occured when the RHBK UI calls the REST service at org.keycloak.provider.ProviderConfigProperty
 "com.xml.xyz.MismatchedInputException: Cannot deserialize value of type `java.lang.String` 
  from Array value (token `JsonToken.START_ARRAY`) at [Source: (io.quarkus.vertx.http.runtime.VertxInputStream); 
  line: 1, column: 392] (through reference chain: 
  org.keycloak.representations.IdentityProviderMapperRepresentation["config"]java.util.LinkedHashMap["hard.coded.attribute.values"])"

Environment

  • Red Hat build of Keycloak
    • 22.x

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