【发布时间】:2017-11-29 18:34:59
【问题描述】:
我需要将具有特定用户角色的用户定向到特定 URL。这可以在 WebSphere 中完成吗?如果有,怎么做?
【问题讨论】:
-
我只是在登录时在 bean 中使用 HttpServletRequest#isUserInRole("Role") 将它们重定向到正确的 URL
标签: websphere url-redirection user-roles
我需要将具有特定用户角色的用户定向到特定 URL。这可以在 WebSphere 中完成吗?如果有,怎么做?
【问题讨论】:
标签: websphere url-redirection user-roles
您可以使用 isUserInRole() 如下,其中 req 是 HttpServletRequest
if (req.isUserInRole("myRole")){
...
}
更多详情: Developing with programmatic security APIs for web applications
【讨论】: