public class KeycloakUserServlet extends UserServlet
config
Constructor and Description |
---|
KeycloakUserServlet() |
Modifier and Type | Method and 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() |
doGet
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
public void init() throws javax.servlet.ServletException
init
in class UserServlet
javax.servlet.ServletException
protected String getUsername(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
getUsername
in class UserServlet
protected String getKeycloakUsername(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
Copyright © 2019 JBoss by Red Hat. All rights reserved.