[keycloak-user] Automatic Client registration: Assign roles to service account

Stian Thorgersen sthorger at redhat.com
Wed Sep 18 22:35:53 EDT 2019


You can't assign roles during client registration as that wouldn't be safe

On Wed, 18 Sep 2019, 17:50 Pavel Micka, <Pavel.Micka at zoomint.com> wrote:

> Hello,
>
> We are currently trying to use client registration policy, so our services
> can register themselves in Keycloak. The registration itself works
> perfectly, but we have one (big) issue: we do not know, how to assign roles
> to the associated service account in the ClientRepresentation (as without
> roles for the client, the registration is a bit useless for us).
>
> Is there any way, how to assign roles (client roles of other services in
> our case) to service account during automatic registration? Or do we need
> an admin account to do that.
>
> Thanks,
>
> Pavel
> _______________________________________________
> 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