[keycloak-user] Admin CLI - how to a a builtin protocol Mapper to a Client
Pedro Igor Silva
psilva at redhat.com
Mon Sep 9 09:25:06 EDT 2019
Hi,
Some time ago we did some work for integrating Keycloak with Openshift so
that we had to use Admin CLI a lot in order to create/configure things more
dynamically.
You may want to have a look here
https://github.com/keycloak/openshift-integration/blob/master/configure-keycloak#L57.
Note that the CLI allows you to pass a full JSON with your client settings.
In that example, we are creating a client and setting an
user-property-mapper
https://github.com/keycloak/openshift-integration/blob/master/kc-client-openshift-cli.json
.
Regards.
Pedro Igor
On Mon, Sep 9, 2019 at 10:07 AM Bruce Smith <bruceesmith at gmail.com> wrote:
> Hi
>
> I am trying to add the built-in protocol mapper "realm roles" to a client
> using the Admin CLI. I must have tried 500 syntactic combinations for the
> "--set" parameter; they all result in either no error (but no mapper added
> to the client), or a Java exception
> (com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot
> deserialize instance of `java.util.ArrayList` out of VALUE_STRING token).
>
> Does anyone have an example that can be shared of successfully using the
> Admin CLI for this operation, please?
>
> Keycloak version is 6.0.1
>
> Regards
> Bruce
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user
>
More information about the keycloak-user
mailing list