2013/4/1 André Warnier <a...@ice-sa.com>: > Christopher Schultz wrote: >> >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA256 >> >> Karthik, >> >> On 4/1/13 8:28 AM, N.s.Karthik wrote: >>> >>> Reason : I have created a Customized valve as a separate jar used >>> for AAA interception of my APPS , Since I cannot configure each and >>> every application hosted on the Tomcat with filters and hence >>> created a Valve to apply this at Tomcat level >>> >>> I use the IWA (Integrated Window Authentication) of IE / FFOx for >>> Active directory AAA Authentication. >>> >>> On-sucessfull AAA, in the valve I need the variables such as >>> username/domain name .... to be further used with in each >>> application >>> >>> Hence I need to know if any possibilities to fetch the variables >>> into each of the applications from the valves ...??? >> >> >> Your valve can put anything you like into: >> >> 1. The request >> 2. The user's session >> 3. The application (context) scope >> >> I recommend #1 or #2, depending upon your needs. >> > Is my understanding deficient, or is #3 not true ? The Valve doesn't know > which application has (or will be) been selected, or does it ?
1. As far as request has passed through Mapper, it knows to what application (Context) and even to what servlet (Wrapper) it goes to. This happens rather early - in CoyoteAdapter. It happens before the request is passed to Pipeline (chain of valves). org.apache.catalina.connector.Request#getContext() 2. If valve was declared in context.xml, it knows what its parent is. > > In the context of a Valve doing AAA - and the fact that the OP wants to get > the authenticated user-id at the app level, I think Michael-O's answer is > better, no ? > Best regards, Konstantin Kolinko --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org