Bug 403165 - Let the request return a remote user
Summary: Let the request return a remote user
Status: NEW
Alias: None
Product: RAP
Classification: RT
Component: Tools (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 enhancement with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-13 06:42 EDT by Markus Knauer CLA
Modified: 2013-03-13 13:29 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Knauer CLA 2013-03-13 06:42:09 EDT
In many of the commercial RAP applications I've seen developers (including myself) using the authenticated remote user of the request for getting additional user data, accessing database systems, etc.:

  String user = RWT.getRequest().getRemoteUser();

Another way is via getUserPrincipal().

Both ways work if and only if the user has been authenticated, but it is not possible to achieve this

- when a RAP application is launched with Jetty by the RAP Tools launch configuration and
- when s.o. writes tests and needs a fake remote user.

My current thinking is that it could be helpful if a user could set a fake user in these cases.