在应用程序中获取码头领域凭证

问题描述:

这可能是一个愚蠢的问题,但是我们在服务器上使用了码头基本认证.现在,我们要在应用程序中使用用户凭证.是否可以在RAP Web应用程序中获得当前登录名?

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?

谢谢

我不是RAP专家,但是您似乎想这样做:

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

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