Class KeycloakAuthenticatorProvider

java.lang.Object
org.nuxeo.ecm.platform.ui.web.keycloak.KeycloakAuthenticatorProvider

public class KeycloakAuthenticatorProvider extends Object
Since:
7.4
  • Field Details

    • CLIENT_ID_PARAM

      protected static final String CLIENT_ID_PARAM
      See Also:
    • CLIENT_SECRET_PARAM

      protected static final String CLIENT_SECRET_PARAM
      See Also:
    • ID_TOKEN_HINT_PARAM

      protected static final String ID_TOKEN_HINT_PARAM
      See Also:
    • GRANT_TYPE_CLIENT_CREDENTIALS

      protected static final String GRANT_TYPE_CLIENT_CREDENTIALS
      See Also:
    • GRANT_TYPE_PARAM

      protected static final String GRANT_TYPE_PARAM
      See Also:
    • RESOURCE_SECRET_KEY

      protected static final String RESOURCE_SECRET_KEY
      See Also:
    • POST_LOGOUT_REDIRECT_URI_PARAM

      protected static final String POST_LOGOUT_REDIRECT_URI_PARAM
      See Also:
    • SCOPE_PARAM

      protected static final String SCOPE_PARAM
      See Also:
    • TOKEN_SCOPE_OPENID

      protected static final String TOKEN_SCOPE_OPENID
      See Also:
    • mapper

      protected static final com.fasterxml.jackson.databind.ObjectMapper mapper
    • nodesRegistrationManagement

      protected final org.keycloak.adapters.NodesRegistrationManagement nodesRegistrationManagement
    • deploymentContext

      protected final org.keycloak.adapters.AdapterDeploymentContext deploymentContext
    • resolvedDeployment

      protected org.keycloak.adapters.KeycloakDeployment resolvedDeployment
  • Constructor Details

    • KeycloakAuthenticatorProvider

      public KeycloakAuthenticatorProvider(org.keycloak.adapters.AdapterDeploymentContext deploymentContext)
  • Method Details

    • provide

      public KeycloakRequestAuthenticator provide(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse)
    • logout

      public String logout(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse)
    • getResolvedDeployment

      public org.keycloak.adapters.KeycloakDeployment getResolvedDeployment()
    • logoutQueryParam

      protected org.keycloak.common.util.KeycloakUriBuilder logoutQueryParam(org.keycloak.common.util.KeycloakUriBuilder builder, String redirectTo, String idTokenHint)
    • getLogoutUri

      protected String getLogoutUri(org.apache.catalina.connector.Request request)
    • getIdTokenHint

      protected String getIdTokenHint()
    • buildHttpClient

      protected org.apache.http.impl.client.CloseableHttpClient buildHttpClient()
    • configureProxy

      protected void configureProxy(org.apache.http.impl.client.HttpClientBuilder builder)