Hi,
I am trying to add a client protocol-mapper however when i try and run this i get a HTTP
error - 500 Internal Server Error
opt/jboss/keycloak/bin/kcadm.sh create \clients/<id>/protocol-mappers/models \-r
demorealm \-s protocol=openid-connect \-s protocolMapper=oidc-usermodel-realm-mapper \-s
consentRequired=false \-s config.claim.name=group_membership \-s
config.jsonType.label=String \-s config.id.token.claim=true \-s
config.access.token.claim=true \-s config.userinfo.token.claim=true \-s
config.multivalued=true \-s name=Realm \
I can confirm that kcadm works as i have been able to create groups, LDAP mappers, realms
etc...
In the server.log i can see the below error when i run the above
ERROR [org.keycloak.services.error.KeycloakErrorHandler] (default task-109) Uncaught
server error: com.fasterxml.jackson.databind.JsonMappingException: Can notat [Source:
io.undertow.servlet.spec.ServletInputStreamImpl@55dee6f8; line: 1, column: 119] (through
reference chain: org.keycloak.representations.idm.ProtocolMapperRepresentation["co
at
com.fasterxml.jackson.databind.JsonMappingException.from(JsonMappingException.java:270)
at
com.fasterxml.jackson.databind.DeserializationContext.reportMappingException(DeserializationContext.java:1234)
at
com.fasterxml.jackson.databind.DeserializationContext.handleUnexpectedToken(DeserializationContext.java:1122)
at
com.fasterxml.jackson.databind.DeserializationContext.handleUnexpectedToken(DeserializationContext.java:1075)
at
com.fasterxml.jackson.databind.deser.std.StringDeserializer.deserialize(StringDeserializer.java:60)
Appreciate if anyone can advise on this (keycloak version is 3.4.3)
Thanks Jamie
Show replies by date