3

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

Tim
  • 6,406
  • 22
  • 34
baklap
  • 2,145
  • 6
  • 28
  • 41

1 Answers1

3

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

 HttpServletRequest request = RWT.getRequest();
 Principal user = request.getUserPrincipal();
Tim
  • 6,406
  • 22
  • 34