Package org.keycloak.services.resources
Class ClientsManagementService
java.lang.Object
org.keycloak.services.resources.ClientsManagementService
- Author:
- Marek Posolda
-
Field Summary
Modifier and TypeFieldDescriptionprotected final jakarta.ws.rs.core.HttpHeaders
protected final KeycloakSession
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected ClientModel
static jakarta.ws.rs.core.UriBuilder
clientsManagementBaseUrl
(jakarta.ws.rs.core.UriBuilder baseUriBuilder) protected String
getClientClusterHost
(jakarta.ws.rs.core.MultivaluedMap<String, String> formData) jakarta.ws.rs.core.Response
registerNode
(String authorizationHeader, jakarta.ws.rs.core.MultivaluedMap<String, String> formData) URL invoked by adapter to register new client cluster node.static jakarta.ws.rs.core.UriBuilder
registerNodeUrl
(jakarta.ws.rs.core.UriBuilder baseUriBuilder) jakarta.ws.rs.core.Response
unregisterNode
(String authorizationHeader, jakarta.ws.rs.core.MultivaluedMap<String, String> formData) URL invoked by adapter to register new client cluster node.static jakarta.ws.rs.core.UriBuilder
unregisterNodeUrl
(jakarta.ws.rs.core.UriBuilder baseUriBuilder)
-
Field Details
-
headers
protected final jakarta.ws.rs.core.HttpHeaders headers -
session
-
-
Constructor Details
-
ClientsManagementService
-
-
Method Details
-
clientsManagementBaseUrl
public static jakarta.ws.rs.core.UriBuilder clientsManagementBaseUrl(jakarta.ws.rs.core.UriBuilder baseUriBuilder) -
registerNodeUrl
public static jakarta.ws.rs.core.UriBuilder registerNodeUrl(jakarta.ws.rs.core.UriBuilder baseUriBuilder) -
unregisterNodeUrl
public static jakarta.ws.rs.core.UriBuilder unregisterNodeUrl(jakarta.ws.rs.core.UriBuilder baseUriBuilder) -
registerNode
@Path("register-node") @POST @Produces("application/json") public jakarta.ws.rs.core.Response registerNode(@HeaderParam("Authorization") String authorizationHeader, jakarta.ws.rs.core.MultivaluedMap<String, String> formData) URL invoked by adapter to register new client cluster node. Each application cluster node will invoke this URL once it joins cluster- Parameters:
authorizationHeader
-formData
-- Returns:
-
unregisterNode
@Path("unregister-node") @POST @Produces("application/json") public jakarta.ws.rs.core.Response unregisterNode(@HeaderParam("Authorization") String authorizationHeader, jakarta.ws.rs.core.MultivaluedMap<String, String> formData) URL invoked by adapter to register new client cluster node. Each application cluster node will invoke this URL once it joins cluster- Parameters:
authorizationHeader
-formData
-- Returns:
-
authorizeClient
-
getClientClusterHost
-