Using an iframe on the same domain might be your only choice.
To accomplish this, we use a technique where the login form is served by
the client web site and simply posts the username and password directly
to the CAS server along with the "service" parameter. We're using CAS
3.0.x, so the login ticket ("lt") isn't actually required, allowing this
to work. Since you are using CAS 2.x, the "lt" parameter is required,
so this won't actually work without modifying the server code,
unfortunately. Also, we did modify the CAS server (which you want to
avoid) by causing it to redirect the user back to the client page (with
a special query parameter) if the username and password are incorrect.
However, we handled this by only modifying the JSP page, not class
files, by detecting the referrer header and redirecting back to that
URL.
We can use this in conjunction with "gateway" authentication to allow
the system to recognize users who have already logged in.
-Nathan
From: Chandramohan [mailto:[email protected]]
Sent: Tuesday, March 03, 2009 12:17 AM
To: [email protected]
Subject: [cas-user] How to use custom login page instead of CAS login
page?
Hi,
I have been googling from last 2 weeks to get my application
integrated with CAS.
Specific Requirements:
1. I do not want show the CAS login page, user should get
logged-id / CAS authenticated using applications custom login page.
2. As the user is CAS authenticated at the time of login, all
the secured page will be available to it.
3. I can not modify CAS server, I am writing only CAS client.
I have tried all the available solutions given on net.
1. Using Iframe
If the server and client are in different domain then how can
clients JSP access the objects of CASLogin form.
2. Using HttpClient
AS Server dose not create the required cookies but returns the
ticket. If client creates the cookies, server fails to identify them
3. Using ACEGI
There is no way to bypass the CAS login page, but still get CAS
authenticated.
Can any buddy please throw some light on this? Please send some
sample code, if possible.
I am using CAS server 2.x and CAS client 2.1.x
Can any buddy please throw some light on this?
Please send some sample code if possible.
Thanks and Regards,
Chandramohan
--
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