Class KeycloakUserServlet

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected String getKeycloakUsername​(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
      With Keycloak integration, the Authorization header is available in the request to the UserServlet.
      protected String getUsername​(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)  
      void init()  
      • Methods inherited from class javax.servlet.http.HttpServlet

        doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
      • Methods inherited from class javax.servlet.GenericServlet

        destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
    • Constructor Detail

      • KeycloakUserServlet

        public KeycloakUserServlet()
    • Method Detail

      • init

        public void init()
                  throws javax.servlet.ServletException
        Overrides:
        init in class UserServlet
        Throws:
        javax.servlet.ServletException
      • getUsername

        protected String getUsername​(javax.servlet.http.HttpServletRequest req,
                                     javax.servlet.http.HttpServletResponse resp)
        Overrides:
        getUsername in class UserServlet
      • getKeycloakUsername

        protected String getKeycloakUsername​(javax.servlet.http.HttpServletRequest req,
                                             javax.servlet.http.HttpServletResponse resp)
        With Keycloak integration, the Authorization header is available in the request to the UserServlet.