Get jetty realm credentials in application

廉价感情. 提交于 2019-12-23 16:41:07

问题


It might be a stupid question but we are using jetty basic authentication on our server. Now we want to use the usercredentials in our application. Is it possible to get the current login in the RAP webapplication?

Thanks


回答1:


I'm not a RAP expert, but it looks like you want to do this:

 HttpServletRequest request = RWT.getRequest();
 Principal user = request.getUserPrincipal();


来源:https://stackoverflow.com/questions/7991244/get-jetty-realm-credentials-in-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!