History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: WW-626
Type: New Feature New Feature
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Mathias Bogaert
Reporter: Remigijus Bauzys
Votes: 0
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
WebWork

Principal Interceptor

Created: 04/Sep/04 10:36 AM   Updated: 20/Oct/04 05:46 AM
Component/s: Interceptors
Affects Version/s: 2.2
Fix Version/s: 2.1.5

File Attachments: 1. Java Source File PrincipalAware.java (0.6 kb)
2. Java Source File PrincipalInterceptor.java (1 kb)
3. Java Source File PrincipalProxy.java (0.8 kb)



 Description  « Hide
Now in order to get access to Principal information from action you have to add servlet-config interceptor to your action or get HttpServletRequest from ActionContext. In any case your action become bound to Servlet API that makes it diffucult to test it.

I have created an interceptor, Interface and helper class.

Interceptor allows access to the following HttpServletRequest methods: getUserPrincipal(), isUserInRole(), getRemoteUser().

Comments, sugestions and reviews are welcome.

Still have some questions:
1. Should I add ability to get access to HttpServletRequest.getAuthType() method.



 All   Comments   Change History      Sort Order:
Remigijus Bauzys - [04/Sep/04 10:38 AM ]
PrincipalAware interface

Remigijus Bauzys - [04/Sep/04 10:39 AM ]
PrincipalInterceptor

Remigijus Bauzys - [04/Sep/04 10:39 AM ]
Helper class.

Mathias Bogaert - [20/Oct/04 05:46 AM ]
Added classes, slightly modified. Could you document this on the WIKI? Create a new page and put documentation and small example. Thanks!