Under the webapp/WEB-INF/view/jsp/default/ui folder, you can customize
the casLoginView.jsp page. The usual way to do this is to make a copy
of it, and make a similar folder structure starting at the
webapp/WEB-INF/view/jsp/ level of your own (e.g.,
webapp/WEB-INF/view/jsp/<your corporation>/ui).
You specify the CAS login page in the default_views.properties file that
is under WEB-INF/classes. Don't touch the /protocol files. You can
also make a copy of the default_views.properties file. You tell CAS
about your new default_views.properties file in the
WEB-INF/cas-servlet.xml file.
<!-- View Resolver -->
<bean
id="viewResolver"
class="org.springframework.web.servlet.view.ResourceBundleViewResolver">
<property
name="basename"
value="default_views" />
<property
name="order"
value="0" />
</bean>
You will have to change your login JSP page to use the form variables
that CAS uses. I.e., "username" and "password". CAS also adds a couple
of hidden variables,
<input type="hidden" name="lt" value="${flowExecutionKey}" />
<input type="hidden" name="_eventId" value="submit" />
Take a look at the casLoginView.jsp for details.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of hezjing
Sent: Wednesday, November 21, 2007 2:54 AM
To: Yale CAS mailing list
Subject: Using CAS without changing existing login page?
Hi
I want to use CAS, and my web-based application already has a login
page (it is a JSP).
Can I still remain the existing login page, and then authenticated via
CAS?
To ensure that the customer does not realize that I have switched to
CAS?
How can this be done?
--
Hez
_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas
This e-mail and any files transmitted with it are confidential and are intended
solely for the use of the individual or entity to whom they are addressed.
This communication may contain information that is protected from disclosure by
applicable law. If you are not the intended recipient, or the employee or
agent responsible for delivering this communication to the intended recipient,
be advised that you have received this e-mail in error and any use,
dissemination, forwarding, printing or copying of this e-mail is strictly
prohibited. If you believe that you have received this e-mail in error, please
immediately notify Edgewater Technology by telephone at (781) 246-3343 and
delete the communication from all e-mail files.
_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas