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() |
doGetdoDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, servicepublic void init()
throws javax.servlet.ServletException
init in class UserServletjavax.servlet.ServletExceptionprotected String getUsername(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
getUsername in class UserServletprotected String getKeycloakUsername(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
Copyright © 2020 JBoss by Red Hat. All rights reserved.