Can anyone please help me on how to retrieve logged in user's username using
java using java client. I have been trying to do something
like
String user =
(String)session.getAttribute("edu.yale.its.tp.cas.client.filter.CASFilter.BlazerID");
I dont know if its right, but BlazerID is the login for my university. I
have configured my web.xml as follows:
<filter>
<filter-name>CAS Filter</filter-name>
<filter-class>edu.yale.its.tp.cas.client.filter.CASFilter</filter-class>
<init-param>
<param-name>edu.yale.its.tp.cas.client.filter.loginUrl</param-name>
<param-value>https://padlock.dpo.uab.edu/cas/login</param-value>
</init-param>
<init-param>
<param-name>edu.yale.its.tp.cas.client.filter.validateUrl</param-name>
<param-value>https://padlock.dpo.uab.edu/cas/serviceValidate
</param-value>
</init-param>
<init-param>
<param-name>edu.yale.its.tp.cas.client.filter.serverName</param-name>
<param-value>uab-72f0a812f06:8084</param-value>
</init-param>
<init-param>
<param-name>edu.yale.its.tp.cas.client.filter.wrapRequest</param-name>
<param-value>true</param-value>
</init-param>
</filter>
Can anyone please tell me the right approach.
Thanks
On Fri, Jul 25, 2008 at 5:08 AM, Michael Ströder <[EMAIL PROTECTED]>wrote:
> Naveen wrote:
> >
> > I am developing an application using JSF, spring, hibernate. Initially I
> > created a login page with a local mysql database values. There are three
> > users of the system, and each user upon successful login gets redirected
> > to their respective home pages. Now, I need to configure my application
> > to use my University's CAS page. I am able to login into my application
> > using my universities CAS login. I want to configure the CAS in such a
> > way that, I want to compare my universities username credentials with
> > the local database values, and then redirect the user to their
> > respective home pages, rather than going to my application's login page.
> > Can anyone please suggest me on how to do this???
>
>
>
> Your application could also do the redirect to the user's home page. Or
> why not CAS-ify the user's home page itself?
>
> Ciao, Michael.
> _______________________________________________
> Yale CAS mailing list
> [email protected]
> http://tp.its.yale.edu/mailman/listinfo/cas
>
_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas