Gunnar Brading wrote:

I have been in need of using the <run-as> tag in a Tomcat-only environment... Is this possible? Reading the source indicates that it wouldn't be possible to get the information about the role the context currently is in. Using the requests in-role methods of course tells me about
the user, and not the context.


Have I come to the right conclusion?

No ;-)

You can get access to the Subject by doing Subject.getSubject(AccessController.getContext())


Reading the specs tells me that the functionality is meant for transferring roles to EJB's. Some documentation I found at Sun indicates though that even web-applications should be able to use this.

The way SJSAS 8.x is doing that is by using the Subject and then the principal(s) associated with the Subject.


-- Jeanfrancois


Anyone got more information about this?

Cheers,
-- gunnar



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to