username can be retrieved using the Principal interface through HttpServletRequest.getUserPrincipal().
2013/10/23 nmahtolia <[email protected]> > Hi All, > > I’m evaluating CAS for single sign on solution using CAS-Server-3.5.2 and > mod_auth_cas v1.0.9.1 Apache module. I’ve Apache Web Server, CAS Server in > tomcat and various Applications in JBoss. I've limited option to use CAS > Java client to avoid additional calls in between application server and CAS > server. > > Issue I’m facing is, after successful authentication I don’t get username > in > application. I did following: > 1) In mod_auth_cas, I have directive: CASAuthNHeader on > 2) I also see Cookie getting persist in folder specified via > directive: CASCookiePath > 3) Trying to access username as below: > a. request.getHeader("on") . Also tried various other options, > such as request.getHeader("REMOTE_USER")/ > request.getParameter("REMOTE_USER") and few other approach but none > returned > expected username and it is null. > > Request to please give some pointer, what might be wrong causing this > issue? > > Thanks & Regards, > Narayan > > > > > -- > View this message in context: > http://jasig.275507.n4.nabble.com/Issue-getting-username-in-Http-Headers-tp4661000.html > Sent from the CAS Developers mailing list archive at Nabble.com. > > -- > You are currently subscribed to [email protected] as: > [email protected] > To unsubscribe, change settings or access archives, see > http://www.ja-sig.org/wiki/display/JSG/cas-dev > > -- You are currently subscribed to [email protected] as: [email protected] To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-dev
