Class ScopeMappedClientResource


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

      • getClientScopeMappings

        @GET
        @Produces("application/json")
        public Stream<org.keycloak.representations.idm.RoleRepresentation> getClientScopeMappings()
        Get the roles associated with a client's scope Returns roles for the client.
        Returns:
      • getAvailableClientScopeMappings

        @Path("available")
        @GET
        @Produces("application/json")
        public Stream<org.keycloak.representations.idm.RoleRepresentation> getAvailableClientScopeMappings()
        The available client-level roles Returns the roles for the client that can be associated with the client's scope
        Returns:
      • getCompositeClientScopeMappings

        @Path("composite")
        @GET
        @Produces("application/json")
        public Stream<org.keycloak.representations.idm.RoleRepresentation> getCompositeClientScopeMappings​(@QueryParam("briefRepresentation") @DefaultValue("true")
                                                                                                           boolean briefRepresentation)
        Get effective client roles Returns the roles for the client that are associated with the client's scope.
        Parameters:
        briefRepresentation - if false, return roles with their attributes
        Returns:
      • addClientScopeMapping

        @POST
        @Consumes("application/json")
        public void addClientScopeMapping​(List<org.keycloak.representations.idm.RoleRepresentation> roles)
        Add client-level roles to the client's scope
        Parameters:
        roles -
      • deleteClientScopeMapping

        @DELETE
        @Consumes("application/json")
        public void deleteClientScopeMapping​(List<org.keycloak.representations.idm.RoleRepresentation> roles)
        Remove client-level roles from the client's scope.
        Parameters:
        roles -