CAS login in an Iframe in a different server
Scott Battaglia
scott.battaglia at gmail.com
Thu Feb 28 09:32:08 EST 2008
All you need to do is modify the last action in the login-flow.xml.
Currently its hardcoded to an end-state that issues a 302 redirect. You'll
need to change the end-state so that it goes to a JSP page (within the CAS
server). That JSP page will include JavaScript which will redirect the
entire window (I forgot which JavaScript object exactly) to the service URL
with the service ticket appended.
-Scott
On Thu, Feb 28, 2008 at 6:43 AM, Álvaro Manso Gutiérrez <
alvaro.manso.gutierrez at gmail.com> wrote:
> Hello,
>
> I have the following situation: I need to integrate the login view of CAS
> in a portal. The CAS is used for access to an application that is an server
> (server A) with its CAS-client. The portal are in a different server (server
> B)
>
> I can show the login view in an iframe in the portal, but what I want is:
> If the login is successfull, I have a valid ticket, redirect the iframe to
> the main window (i.e using javascript)
> If the login is not successfull, show the error in the portal( in the
> practice do nothing).
>
> The problem is that my applications are in different servers, so I can't
> access to the session variables of the serverB in the serverA. I don't know
> how to obtain the ticket of the login in the portal to decide if I have to
> redirect or not.
>
> Are there any way to do that?
>
> _______________________________________________
> Yale CAS mailing list
> cas at tp.its.yale.edu
> http://tp.its.yale.edu/mailman/listinfo/cas
>
>
--
-Scott Battaglia
PGP Public Key Id: 0x383733AA
LinkedIn: http://www.linkedin.com/in/scottbattaglia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tp.its.yale.edu/pipermail/cas/attachments/20080228/b302aaaa/attachment.html
More information about the cas
mailing list