Class ClientRoleMappingsResource


  • public class ClientRoleMappingsResource
    extends Object
    Version:
    $Revision: 1 $
    Author:
    Bill Burke
    • Method Detail

      • getClientRoleMappings

        @GET
        @Produces("application/json")
        public Stream<org.keycloak.representations.idm.RoleRepresentation> getClientRoleMappings()
        Get client-level role mappings for the user, and the app
        Returns:
      • getCompositeClientRoleMappings

        @Path("composite")
        @GET
        @Produces("application/json")
        public Stream<org.keycloak.representations.idm.RoleRepresentation> getCompositeClientRoleMappings​(@QueryParam("briefRepresentation") @DefaultValue("true")
                                                                                                          boolean briefRepresentation)
        Get effective client-level role mappings This recurses any composite roles
        Parameters:
        briefRepresentation - if false, return roles with their attributes
        Returns:
      • getAvailableClientRoleMappings

        @Path("available")
        @GET
        @Produces("application/json")
        public Stream<org.keycloak.representations.idm.RoleRepresentation> getAvailableClientRoleMappings()
        Get available client-level roles that can be mapped to the user
        Returns:
      • addClientRoleMapping

        @POST
        @Consumes("application/json")
        public void addClientRoleMapping​(List<org.keycloak.representations.idm.RoleRepresentation> roles)
        Add client-level roles to the user role mapping
        Parameters:
        roles -
      • deleteClientRoleMapping

        @DELETE
        @Consumes("application/json")
        public void deleteClientRoleMapping​(List<org.keycloak.representations.idm.RoleRepresentation> roles)
        Delete client-level roles from user role mapping
        Parameters:
        roles -