Interface KeycloakClient


  • public interface KeycloakClient
    • Method Detail

      • searchUsers

        @RequestMapping(method=GET,
                        value="/users")
        List<KeycloakUser> searchUsers​(@RequestParam("search")
                                       String search,
                                       @RequestParam("first")
                                       Integer first,
                                       @RequestParam("max")
                                       Integer max)
      • searchUsersByUsername

        @RequestMapping(method=GET,
                        value="/users")
        List<KeycloakUser> searchUsersByUsername​(@RequestParam("username")
                                                 String username)
      • getUserRoleMapping

        @RequestMapping(method=GET,
                        value="/users/{id}/role-mappings/realm/composite")
        @Cacheable("userRoleMapping")
        List<KeycloakRoleMapping> getUserRoleMapping​(@PathVariable("id")
                                                     String id)
      • getUserRoleMappingAvailable

        @RequestMapping(method=GET,
                        value="/users/{id}/role-mappings/realm/available")
        List<KeycloakRoleMapping> getUserRoleMappingAvailable​(@PathVariable("id")
                                                              String id)
      • addRealmLevelUserRoleMapping

        @RequestMapping(method=POST,
                        value="/users/{id}/role-mappings/realm")
        void addRealmLevelUserRoleMapping​(@PathVariable("id")
                                          String id,
                                          List<KeycloakRoleMapping> roles)
      • getUserGroups

        @RequestMapping(method=GET,
                        value="/users/{id}/groups")
        @Cacheable("userGroups")
        List<KeycloakGroup> getUserGroups​(@PathVariable("id")
                                          String userId)
      • searchGroups

        @RequestMapping(method=GET,
                        value="/groups")
        List<KeycloakGroup> searchGroups​(@RequestParam("search")
                                         String search,
                                         @RequestParam("first")
                                         Integer first,
                                         @RequestParam("max")
                                         Integer max)
      • getGroupRoleMapping

        @RequestMapping(method=GET,
                        value="/groups/{id}/role-mappings/realm/composite")
        @Cacheable("groupRoleMapping")
        List<KeycloakRoleMapping> getGroupRoleMapping​(@PathVariable("id")
                                                      String id)
      • getUserClientRoleMapping

        @RequestMapping(method=GET,
                        value="/users/{id}/role-mappings/clients/{client}/composite")
        List<KeycloakRoleMapping> getUserClientRoleMapping​(@PathVariable("id")
                                                           String id,
                                                           @PathVariable("client")
                                                           String client)
      • getGroupClientRoleMapping

        @RequestMapping(method=GET,
                        value="/groups/{id}/role-mappings/clients/{client}/composite")
        List<KeycloakRoleMapping> getGroupClientRoleMapping​(@PathVariable("id")
                                                            String id,
                                                            @PathVariable("client")
                                                            String client)
      • getClientRoles

        @RequestMapping(method=GET,
                        value="clients/{id}/roles")
        List<KeycloakRoleMapping> getClientRoles​(@PathVariable("id")
                                                 String id)
      • removeGroupClientRoleMapping

        @RequestMapping(method=DELETE,
                        value="/groups/{id}/role-mappings/clients/{client}")
        List<KeycloakRoleMapping> removeGroupClientRoleMapping​(@PathVariable("id")
                                                               String id,
                                                               @PathVariable("client")
                                                               String client,
                                                               @RequestBody
                                                               List<KeycloakRoleMapping> roles)
      • getUsersClientRoleMapping

        @RequestMapping(method=GET,
                        value="clients/{id}/roles/{role-name}/users")
        List<KeycloakUser> getUsersClientRoleMapping​(@PathVariable("id")
                                                     String id,
                                                     @PathVariable("role-name")
                                                     String roleName)
      • getServiceAccountUserOfClient

        @RequestMapping(method=GET,
                        value="clients/{id}/service-account-user")
        KeycloakUser getServiceAccountUserOfClient​(@PathVariable("id")
                                                   String id)
      • getGroupsClientRoleMapping

        @RequestMapping(method=GET,
                        value="clients/{id}/roles/{role-name}/groups")
        List<KeycloakGroup> getGroupsClientRoleMapping​(@PathVariable("id")
                                                       String id,
                                                       @PathVariable("role-name")
                                                       String roleName)
      • getRoleRepresentationForClient

        @RequestMapping(method=GET,
                        value="clients/{id}/roles/{role-name}")
        KeycloakRoleMapping getRoleRepresentationForClient​(@PathVariable("id")
                                                           String id,
                                                           @PathVariable("role-name")
                                                           String roleName)
      • createRoleRepresentationForClient

        @RequestMapping(method=POST,
                        value="clients/{id}/roles")
        KeycloakRoleMapping createRoleRepresentationForClient​(@PathVariable("id")
                                                              String id,
                                                              @RequestBody
                                                              KeycloakRoleMapping keycloakRoleMapping)
      • getUsersByGroupId

        @RequestMapping(method=GET,
                        value="/groups/{groupId}/members")
        List<KeycloakUser> getUsersByGroupId​(@PathVariable("groupId")
                                             String groupId)
      • getGroupById

        @RequestMapping(method=GET,
                        value="/groups/{id}")
        KeycloakGroup getGroupById​(@PathVariable("id")
                                   String id)
      • getAllGroups

        @RequestMapping(method=GET,
                        value="/groups")
        List<KeycloakGroup> getAllGroups()
      • getAllUsers

        @RequestMapping(method=GET,
                        value="/users")
        List<KeycloakUser> getAllUsers​(@RequestParam(name="max",required=false,defaultValue="100")
                                       Integer max)
      • countAllUsers

        @RequestMapping(method=GET,
                        value="/users/count")
        Integer countAllUsers()
      • getUserById

        @RequestMapping(method=GET,
                        value="/users/{id}")
        KeycloakUser getUserById​(@PathVariable("id")
                                 String id)
      • getGroupByPath

        @RequestMapping(method=GET,
                        value="/group-by-path/{path}")
        KeycloakGroup getGroupByPath​(@PathVariable("path")
                                     String path)
      • deleteClient

        @RequestMapping(method=DELETE,
                        value="/clients/{id}")
        void deleteClient​(@PathVariable("id")
                          String id)
      • createClient

        @RequestMapping(method=POST,
                        value="/clients")
        feign.Response createClient​(@RequestBody
                                    KeycloakClientRepresentation keycloakClientRepresentation)
      • updateClient

        @RequestMapping(method=PUT,
                        value="/clients/{id}")
        void updateClient​(@PathVariable("id")
                          String id,
                          @RequestBody
                          KeycloakClientRepresentation keycloakClientRepresentation)