Package org.keycloak.services.resources
Class RealmsResource
java.lang.Object
org.keycloak.services.resources.RealmsResource
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final org.jboss.logging.Logger
protected KeycloakSession
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic jakarta.ws.rs.core.UriBuilder
accountUrl
(jakarta.ws.rs.core.UriBuilder base) static jakarta.ws.rs.core.UriBuilder
brokerUrl
(jakarta.ws.rs.core.UriInfo uriInfo) static jakarta.ws.rs.core.UriBuilder
clientRegistrationUrl
(jakarta.ws.rs.core.UriInfo uriInfo) getAccountService
(String name) getBrokerService
(String name) getClientsService
(String name) getLoginActionsService
(String name) getProtocol
(String name, String protocol) getRealmResource
(String name) jakarta.ws.rs.core.Response
getRedirect
(String realmName, String clientId) Returns a temporary redirect to the client url configured for the givenclientId
in the givenrealmName
.jakarta.ws.rs.core.Response
getVersionPreflight
(String name, String providerName) jakarta.ws.rs.core.Response
getWellKnown
(String name, String alias) static jakarta.ws.rs.core.UriBuilder
protocolUrl
(jakarta.ws.rs.core.UriBuilder builder) static jakarta.ws.rs.core.UriBuilder
protocolUrl
(jakarta.ws.rs.core.UriInfo uriInfo) static jakarta.ws.rs.core.UriBuilder
realmBaseUrl
(jakarta.ws.rs.core.UriBuilder baseUriBuilder) static jakarta.ws.rs.core.UriBuilder
realmBaseUrl
(jakarta.ws.rs.core.UriInfo uriInfo) resolveRealmExtension
(String realmName, String extension) A JAX-RS sub-resource locator that uses theRealmResourceSPI
to resolve sub-resources instances given anunknownPath
.static jakarta.ws.rs.core.UriBuilder
wellKnownProviderUrl
(jakarta.ws.rs.core.UriBuilder builder)
-
Field Details
-
logger
protected static final org.jboss.logging.Logger logger -
session
-
-
Constructor Details
-
RealmsResource
public RealmsResource()
-
-
Method Details
-
realmBaseUrl
public static jakarta.ws.rs.core.UriBuilder realmBaseUrl(jakarta.ws.rs.core.UriInfo uriInfo) -
realmBaseUrl
public static jakarta.ws.rs.core.UriBuilder realmBaseUrl(jakarta.ws.rs.core.UriBuilder baseUriBuilder) -
accountUrl
public static jakarta.ws.rs.core.UriBuilder accountUrl(jakarta.ws.rs.core.UriBuilder base) -
protocolUrl
public static jakarta.ws.rs.core.UriBuilder protocolUrl(jakarta.ws.rs.core.UriInfo uriInfo) -
protocolUrl
public static jakarta.ws.rs.core.UriBuilder protocolUrl(jakarta.ws.rs.core.UriBuilder builder) -
clientRegistrationUrl
public static jakarta.ws.rs.core.UriBuilder clientRegistrationUrl(jakarta.ws.rs.core.UriInfo uriInfo) -
brokerUrl
public static jakarta.ws.rs.core.UriBuilder brokerUrl(jakarta.ws.rs.core.UriInfo uriInfo) -
wellKnownProviderUrl
public static jakarta.ws.rs.core.UriBuilder wellKnownProviderUrl(jakarta.ws.rs.core.UriBuilder builder) -
getProtocol
-
getRedirect
@GET @Path("{realm}/clients/{client_id}/redirect") public jakarta.ws.rs.core.Response getRedirect(@PathParam("realm") String realmName, @PathParam("client_id") String clientId) Returns a temporary redirect to the client url configured for the givenclientId
in the givenrealmName
.This allows a client to refer to other clients just by their client id in URLs, will then redirect users to the actual client url. The client url is derived according to the rules of the base url in the client configuration.
- Parameters:
realmName
-clientId
-- Returns:
- Since:
- 2.0
-
getLoginActionsService
@Path("{realm}/login-actions") public LoginActionsService getLoginActionsService(@PathParam("realm") String name) -
getClientsService
@Path("{realm}/clients-registrations") public ClientRegistrationService getClientsService(@PathParam("realm") String name) -
getClientsManagementService
@Path("{realm}/clients-managements") public ClientsManagementService getClientsManagementService(@PathParam("realm") String name) -
getAccountService
-
getRealmResource
-
getBrokerService
@Path("{realm}/broker") public IdentityBrokerService getBrokerService(@PathParam("realm") String name) -
getVersionPreflight
-
getWellKnown
-
getAuthorizationService
-
resolveRealmExtension
@Path("{realm}/{extension}") public Object resolveRealmExtension(@PathParam("realm") String realmName, @PathParam("extension") String extension) A JAX-RS sub-resource locator that uses theRealmResourceSPI
to resolve sub-resources instances given anunknownPath
.- Parameters:
extension
- a path that could be to a REST extension- Returns:
- a JAX-RS sub-resource instance for the REST extension if found. Otherwise null is returned.
-