use of org.simbasecurity.dwclient.gateway.representations.RemoveRoleFromUserR in project simba-os by cegeka.
the class SimbaRoleService method removeRoleFromUser.
public void removeRoleFromUser(String ssoToken, SimbaRoleR simbaRole, SimbaUserR simbaUser) {
checkRoleNotNull(simbaRole);
checkUserNotNull(simbaUser);
RemoveRoleFromUserR postEntity = new RemoveRoleFromUserR(simbaRole, simbaUser);
ClientResponse clientResponse = getSimbaResource().path("role").path("removeUser").header(HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_JSON).cookie(new Cookie(AuthenticationConstants.SIMBA_SSO_TOKEN, ssoToken)).post(ClientResponse.class, postEntity);
handleError("removeRole", simbaRole.getName(), simbaUser.getUserName(), clientResponse, logger);
}
Aggregations