use of org.keycloak.admin.client.resource.ResourcePermissionsResource in project keycloak by keycloak.
the class AbstractServletPolicyEnforcerTest method updatePermissionPolicies.
private void updatePermissionPolicies(String permissionName, String... policyNames) {
ResourcePermissionsResource permissions = getAuthorizationResource().permissions().resource();
ResourcePermissionRepresentation permission = permissions.findByName(permissionName);
permission.addPolicy(policyNames);
permissions.findById(permission.getId()).update(permission);
}
Aggregations