[keycloak-user] how to create policy/permission from java admin-client
Pedro Igor Silva
psilva at redhat.com
Tue Mar 13 16:09:48 EDT 2018
Sorry, no docs yet. Take a look at
https://github.com/pedroigor/keycloak/blob/8e64bc3e4dc3d5b6ab449ffff42e425bc76f253f/integration/admin-client/src/main/java/org/keycloak/admin/client/resource/AuthorizationResource.java
.
You can obtain an instance of that class after selecting a client with
authorization services enabled. For some examples, see
https://github.com/pedroigor/keycloak/tree/1e1de85685bb5d5f180f510630cd7133f8a35375/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/admin/client/authorization
.
Regards.
On Tue, Mar 13, 2018 at 4:07 PM, Nhut Thai Le <ntle at castortech.com> wrote:
> Hello,
>
> Is there an example for how to create policy/permission using admin-client
> and authz-client? I'm making a stand-alone java program to dynamically
> create client, role, policy, permission.
>
> Thai
> _______________________________________________
> 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