Package io.hawt.web.auth.keycloak
Class KeycloakUserServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- io.hawt.web.auth.UserServlet
-
- io.hawt.web.auth.keycloak.KeycloakUserServlet
-
- All Implemented Interfaces:
Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig
public class KeycloakUserServlet extends UserServlet
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class io.hawt.web.auth.UserServlet
config
-
-
Constructor Summary
Constructors Constructor Description KeycloakUserServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetKeycloakUsername(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 StringgetUsername(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)voidinit()-
Methods inherited from class io.hawt.web.auth.UserServlet
doGet
-
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
-
-
-
-
Method Detail
-
init
public void init() throws javax.servlet.ServletException- Overrides:
initin classUserServlet- Throws:
javax.servlet.ServletException
-
getUsername
protected String getUsername(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
- Overrides:
getUsernamein classUserServlet
-
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.
-
-