Class KeycloakRequestAuthenticator

java.lang.Object
org.keycloak.adapters.RequestAuthenticator
org.nuxeo.ecm.platform.ui.web.keycloak.KeycloakRequestAuthenticator

public class KeycloakRequestAuthenticator extends org.keycloak.adapters.RequestAuthenticator
Since:
7.4
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    protected org.apache.tomcat.util.descriptor.web.LoginConfig
     
    protected org.apache.catalina.connector.Request
     
    protected javax.servlet.http.HttpServletResponse
     

    Fields inherited from class org.keycloak.adapters.RequestAuthenticator

    challenge, deployment, facade, sslRedirectPort, tokenStore
  • Constructor Summary

    Constructors
    Constructor
    Description
    KeycloakRequestAuthenticator(org.apache.catalina.connector.Request request, javax.servlet.http.HttpServletResponse response, org.keycloak.adapters.tomcat.CatalinaHttpFacade facade, org.keycloak.adapters.KeycloakDeployment deployment)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.keycloak.adapters.spi.AuthOutcome
     
    protected String
    changeHttpSessionId(boolean create)
     
    protected void
    completeBearerAuthentication(org.keycloak.KeycloakPrincipal<org.keycloak.adapters.RefreshableKeycloakSecurityContext> skp, String method)
     
    protected void
    completeOAuthAuthentication(org.keycloak.KeycloakPrincipal<org.keycloak.adapters.RefreshableKeycloakSecurityContext> skp)
     
    protected org.keycloak.adapters.OAuthRequestAuthenticator
     
    protected org.keycloak.adapters.tomcat.GenericPrincipalFactory
     
    protected boolean
     
    org.keycloak.adapters.spi.HttpFacade
     
    protected org.keycloak.adapters.AdapterTokenStore
     

    Methods inherited from class org.keycloak.adapters.RequestAuthenticator

    completeAuthentication, completeAuthentication, createBasicAuthAuthenticator, createBearerTokenAuthenticator, createQueryParameterTokenRequestAuthenticator, getChallenge, isAutodetectedBearerOnly, verifySSL

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • KEYCLOAK_ACCESS_TOKEN

      public static final String KEYCLOAK_ACCESS_TOKEN
      See Also:
    • request

      protected org.apache.catalina.connector.Request request
    • response

      protected javax.servlet.http.HttpServletResponse response
    • loginConfig

      protected org.apache.tomcat.util.descriptor.web.LoginConfig loginConfig
  • Constructor Details

    • KeycloakRequestAuthenticator

      public KeycloakRequestAuthenticator(org.apache.catalina.connector.Request request, javax.servlet.http.HttpServletResponse response, org.keycloak.adapters.tomcat.CatalinaHttpFacade facade, org.keycloak.adapters.KeycloakDeployment deployment)
  • Method Details

    • getFacade

      public org.keycloak.adapters.spi.HttpFacade getFacade()
    • authenticate

      public org.keycloak.adapters.spi.AuthOutcome authenticate()
      Overrides:
      authenticate in class org.keycloak.adapters.RequestAuthenticator
    • forwardToErrorPageInternal

      protected boolean forwardToErrorPageInternal()
    • createPrincipalFactory

      protected org.keycloak.adapters.tomcat.GenericPrincipalFactory createPrincipalFactory()
    • getTokenStore

      protected org.keycloak.adapters.AdapterTokenStore getTokenStore()
    • createOAuthAuthenticator

      protected org.keycloak.adapters.OAuthRequestAuthenticator createOAuthAuthenticator()
      Specified by:
      createOAuthAuthenticator in class org.keycloak.adapters.RequestAuthenticator
    • completeOAuthAuthentication

      protected void completeOAuthAuthentication(org.keycloak.KeycloakPrincipal<org.keycloak.adapters.RefreshableKeycloakSecurityContext> skp)
      Specified by:
      completeOAuthAuthentication in class org.keycloak.adapters.RequestAuthenticator
    • completeBearerAuthentication

      protected void completeBearerAuthentication(org.keycloak.KeycloakPrincipal<org.keycloak.adapters.RefreshableKeycloakSecurityContext> skp, String method)
      Specified by:
      completeBearerAuthentication in class org.keycloak.adapters.RequestAuthenticator
    • changeHttpSessionId

      protected String changeHttpSessionId(boolean create)
      Specified by:
      changeHttpSessionId in class org.keycloak.adapters.RequestAuthenticator