Hi
I am working on a similar problem. I want to login a special user automatically
to the portal the first time a user access it (lets say user in the below
code).
I created a custom tomcat valve using the code described below. However the
user is not authorized to access his dashboard (or
hi,
All we did was that we created a custom valve that extends
org.apache.catalina.valves.ValveBase;
in the invoke method , we added the user principals to the request using
following lines of code.
| .
| List roles = new ArrayList();
| roles.add(Authenticated);
| roles.add(User);
tellarsrinivasprabhu,
Could you pls post here an example of code?
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4084846#4084846
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4084846
Hi,
The approach we followed to solve this problem is to write our own custom
valve for tomcat. We have set the user principals in tomcat container request
object.
this has solved our problem as of now.
View the original post :
I have posted several times on this, if you do a search you can find the posts.
But, no this will not work as stated.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4082092#4082092
Reply to the post :
i am having exactly the same problem of associating the authenticated
logincontext for the duration of the httpsession.
i have successfully initialized a logincontext and login method call.
but i am still prompted for my username and password each time i try to access
a secure resource/page. i
I overrided the isUserInRole function of
org.jboss.portal.portlet.impl.spi.AbstractSecurityContext, like this to solve
getting the user roles from the SecurityAssociation (whose subject i set in the
filter) and instead from the request object.
|public boolean isUserInRole(String