You can also simply have the client application render it's own login form with an action directed towards your CAS server. As of CAS 3.0, you could leave out the "lt" (login ticket) parameter without harm. (Note that this loophole may have been plugged in CAS versions after 3.0, and certainly wouldn't have worked in the 2.x line of CAS servers.) Although this slightly decreases the security of CAS by removing the repost protection (the reason for "lt"), have employed this technique successfully in a few places. We did make an enhancement to the CAS sever so that it will redirect back to the referring page with a special parameter in the event of an authentication failure (such as bad password) instead of displaying its own failure page.
We are considering adding cross-domain AJAX capabilities to the CAS server to allow the client to request an "lt" on the fly when the user submits the login form. This should be sufficient to re-introduce the repost protection offered by the out-of-the-box CAS server. However, the way "lt" is handled by CAS 3.0 is less than ideal (i.e. overloading Spring Web Flow's "conversation" identifier parameter), so it might be tricky to pull this off without cleaning up that aspect of the CAS server.
-Nathan
-----Original Message-----
From: Jordon [mailto:
[hidden email]]
Sent: Wednesday, April 22, 2009 11:08 AM
To:
[hidden email]
Subject: Re: [cas-dev] RESTful API + JSONP
These extensions look good, thanks for the links. Unfortunately, I
don't think they will work in our particular situation.
I failed to mention that we need to decorate the username field on the
client side (ie: javascript) before we submit the user credentials for
an authentication ticket. This is the main reason we need to create our
own login page not deployed to the CAS server.
It would be nice to use RESTful ajax for this, but it sounds like a
reasonable alternative would be to create our own
NonInteractiveCredentialsAction by extending
AbstractNonInteractiveCredentialsAction using the Trusted Authentication
Handler wiki page as a guide
(
http://www.ja-sig.org/wiki/display/CASUM/Trusted).
Jordon
--
You are currently subscribed to
[hidden email] as:
[hidden email]
To unsubscribe, change settings or access archives, see
http://www.ja-sig.org/wiki/display/JSG/cas-dev--
You are currently subscribed to
[hidden email] as:
[hidden email]
To unsubscribe, change settings or access archives, see
http://www.ja-sig.org/wiki/display/JSG/cas-dev