[keycloak-user] authorizationServicesEnabled flag not working from CLI

Pedro Igor Silva psilva at redhat.com
Thu Aug 2 07:47:09 EDT 2018


Hi. Created https://issues.jboss.org/browse/KEYCLOAK-7987. Thanks.

On Thu, Aug 2, 2018 at 4:34 AM, Test Oauth <testoauth55 at gmail.com> wrote:

> I am using following command (on Keycloak 4.1.0):
>
> kcreg create -s clientId=test15 -s protocol=openid-connect -s
> "redirectUris=[\"*\"]" -s publicClient=false -s serviceAccountsEnabled=true
> -s authorizationServicesEnabled=true
>
> The above command successfully creates a new client and sets all the flags
> mentioned in the command except for the authorization option. When I check
> on keycloak web the ' Authorization Enabled ' option is still turned off.
>
> Next, I tried to update this flag:
> kcreg update test15 -s authorizationServicesEnabled=true
>
> No error is thrown but still the  ' Authorization Enabled ' option is
> turned off.
>
> Is it even possible to set this option through CLI ? (It gets enabled if
> done through keycloak web)
>
> Also , am I using the correct option? In the docs :
> https://www.keycloak.org/docs-api/4.1/rest-api/index
>
> 2 flags are mentioned :  authorizationServicesEnabled and
> authorizationSettings.
> On using the second flag I get:
>
> Failed to set attribute 'authorizationSettings' on document type 'default'
>
> which means that this option is not valid for this particular command.
> _______________________________________________
> 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