Hi CAS Developers, I am trying to integrate my existing applications with CAS. But while doing so, I can see that there is no straight forward API provided to access logged-in userName or the Principal object in casGenericSuccessView.jsp though the logged-in userName is available by using request.getRemoteUser() at cas-client application side.
I am finding difficulties to achieve this and got stuck. Also I can see there are others like me want to access username to show for example: Welcome <userName> to the casGenericSuccessView.jsp and I believe this should be kind of a basic feature that should be available after a valid user successfully authenticated from the CAS login and redirected to casGenericSuccessView.jsp page. Even I don't see any proper explanation/code snippet to achieve this on the blogs. Hereby requesting you guys please add this API to the main flow of the CAS-Server release if possible. Regards, Sandip ---------- Forwarded message ---------- From: jayesh patel <[email protected]> Date: 27 November 2012 10:59 Subject: Re: [cas-user] username/user object on the casGenericSuccess.jsp To: [email protected] Hi Sandip, I am facing similar issue, and stuck at the same problem. Can somebody please help with the code snippet for accessing userName or Principal object in casGenericSuccessView.jsp. It would be of great help if somebody provide link to *example* where complete explanation with* sample code* is given. Thanks. On Tue, Nov 27, 2012 at 12:06 AM, Dmitriy Kopylenko <[email protected]>wrote: > To simplify this tgtId -> principal "extraction dance", there is a > convenience API (with the default implementation) in cas-addons that could > be used: > https://github.com/Unicon/cas-addons/blob/master/src/main/java/net/unicon/cas/addons/authentication/AuthenticationSupport.java > > Cheers, > Dmitriy. > > > On Nov 26, 2012, at 1:30 PM, Sandip Paul <[email protected]> wrote: > > Hi CAS Gurus, > > I need to retrieve the username/user object on the casGenericSuccess.jsp? > After a short google search I found a solution mentioned in the below: > http://bb10.com/java-jasig-cas-user/2010-10/msg00102.html > > But I am finding difficulties implementing this as I am just a beginner in > spring web-flow. Can someone share the code snippet so that I can get some > help. > > Highly appreciate your valuable comment on this. > > Regards, > Sandip > > -- > 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-user > > > -- > 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-user > > -- 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-user -- 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
