Thanks Jonathan, i did the same thing and it work like a charm.

Now when a user want to login he get a popup window and after authentication
the window reload the opener and close it self.
thanks for all ;)

Tarik


2007/11/19, Winterflood, Jonathan <[EMAIL PROTECTED]>:
>
>  Tarik,
>
>
>
> You'll need to write some javascript code in the page CAS redirects to on
> login
>
>
>
> window.opener in the popup should give you the window that opened the
> popup
>
> so window.opener.refresh() [not sure this function exists] should do the
> refresh
>
> if you want to send the opening page to a particular URL (maybe safer, the
> user might have moved since the popup opened…), use
> window.opener.location="http://my.url.here";
>
> window.close() should close the popup
>
> *Sorry for the late reply…***
>
> *Jonathan Winterflood **(3237)*
>
> *Capgemini Ouest – Agence de Brest*
>   ------------------------------
>
> *De :* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *De
> la part de* Tarik Arrad
> *Envoyé :* mardi 13 novembre 2007 18:10
> *À :* Yale CAS mailing list
> *Objet :* Re: Customize authentication page
>
>
>
> i'm able to call the authentication page using window.open, but i don't
> see how can i close it (automatically or manully) and refresh the opener?
>
>
>
>
> 2007/11/13, Winterflood, Jonathan <[EMAIL PROTECTED]>:
>
> Hi again,
>
>
>
> I'm afraid I haven't developed those methods…
>
>
>
> What do you mean by 'it fails'?
>
> Does the page just not change, or do you get a JavaScript error? (Firefox
> with the firebug plug-in should help you debug your JavaScript)
>
>
>
> Maybe if you attach your JavaScript and error we could help more.
>
> *HTH,*
>
> *Jonathan Winterflood **(3237)*
>
> *Capgemini Ouest – Agence de Brest*
>   ------------------------------
>
> *De :* [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED] *De
> la part de* Tarik Arrad
> *Envoyé :* mardi 13 novembre 2007 15:36
>
>
> *À :* Yale CAS mailing list
> *Objet :* Re: Customize authentication page
>
>
>
> i tryed to do that using refresh option but it fails, do you have an
> example plz?
>
> 2007/11/13, Winterflood, Jonathan < [EMAIL PROTECTED]>:
>
> Hi,
>
>
>
> Here is how I would try.
>
>
>
> Let's say your users request a login by pressing a button, a link, etc…
>
> You should open that page in a popup (javascript / target="_blank",
> <insert your method here>); all CAS work happens in here
>
>
>
> Then you should set the "service" URL that the CAS server redirects to on
> success to a page that will refresh the page that opened it (you should be
> able to get it with javascript: window.opener)
>
> Then there are two options: either the refresher page logs you in and
> requests a refresh, or it rewrites the original page's location, including
> the ticket.
>
> The former would probably be better, e.g. in case the window.opener code
> fails.
>
>
>
> HTH,
>
> *Jonathan Winterflood*
>
> *Capgemini Ouest – Agence de Brest *
>    ------------------------------
>
> *De :* [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED] *De
> la part de* Tarik Arrad
> *Envoyé :* mardi 13 novembre 2007 12:41
> *À :* Yale CAS mailing list
> *Objet :* Re: Customize authentication page
>
>
>
> is it possible to open login page on popup and after authentication close
> the popup and refresh the service caller?
>
> 2007/11/13, Tarik Arrad < [EMAIL PROTECTED]>:
>
> Thanks for help, my authentication page is well customized now.
>
> Tarik
>
>
>
> 2007/11/13, Christine Dorothy < [EMAIL PROTECTED]>:
>
>  Oops, I forgot… the text that's printed to the JSPs is inside the
> messages.properties .
>
>
>
> l          cas-server-webapp\src\main\webapp\WEB-INF\classes\*
> messages.properties*
>
> Here you'll find most of the text that is printed out to the JSP.
>
>
>
> Regards,
>
> Christine D.
>
> Office of Technology, IS
>
>
>
>
>    ------------------------------
>
> *From:* Christine Dorothy
> *Sent:* Tuesday, November 13, 2007 3:26 PM
> *To:* 'Yale CAS mailing list'
> *Subject:* RE: Customize authentication page
>
>
>
> Hi there,
>
>
>
> I did a bit of customization to my CAS page. Here are some of the files
> related if you'd like to customize.
>
> l          cas-server-webapp\src\main\webapp\css\cas.css
>
> For customizing the logo on top >> #header (line 48)
>
> For customizing the 'Central Authentication Service' text look and feel >>
> #header h1#app-name (line 50)
>
> l          cas-server-webapp\src\main\webapp\WEB-INF\view\jsp\default\ui\
>
> Athis is what Scott say it contains the JSP
>
> l          
> cas-server-webapp\src\main\webapp\WEB-INF\view\jsp\default\ui\includes
>
>
> You'll find the top.jsp and bottom.jsp here. It's where the logo and
> application name on top + copyright notice below are displayed.
>
> l          cas-server-webapp\src\main\webapp\WEB-INF\classes
>
> Here you'll find most of the text that is printed out to the JSP.
>
>
>
> Hope this helps…
>
>
>
> Regards,
>
> * *
>
> *Christine Dorothy*
>
> Software Analyst, Office of Technology
>
> DID: +65 6887 7548
>
> Fax: +65 6778 5277
>
>
>
> *CrimsonLogic Pte Ltd*
>
> *(Regn No: 198800784N)*
>
> 31 Science Park Road, The Crimson, Singapore 117611
>
> Main Line: +65 6887 7888, Fax: +65 6778 5277
>
> Visit us at www.crimsonlogic.com
>
>
>
> *Makes better sense** *
>
>
>
>
>    ------------------------------
>
> *From:* [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED]
> *On Behalf Of *Scott Battaglia
> *Sent:* Tuesday, November 13, 2007 12:49 PM
> *To:* Yale CAS mailing list
> *Subject:* Re: Customize authentication page
>
>
>
> You'll find all of the JSP pages in:
>
> CAS_PROJECT_HOME/cas-server-webapp/src/main/WEB-INF/view/jsp/default (or
> something very similar to that path, incase I spelled something wrong ;-))
>
> -Scott
>
> On Nov 12, 2007 1:43 PM, Tarik Arrad < [EMAIL PROTECTED]> wrote:
>
> Hi,
>
> Is it possible to customize the design of the authentication page? if so,
> how can i do that?
>
> Tarik
>
>
> _______________________________________________
> Yale CAS mailing list
> [email protected]
> http://tp.its.yale.edu/mailman/listinfo/cas
>
>
>
>
> --
> -Scott Battaglia
>
> LinkedIn: http://www.linkedin.com/in/scottbattaglia
>
>
> _______________________________________________
> Yale CAS mailing list
> [email protected]
> http://tp.its.yale.edu/mailman/listinfo/cas
>
>
>
>
>
> This message contains information that may be privileged or confidential
> and is the property of the Capgemini Group. It is intended only for the
> person to whom it is addressed. If you are not the intended recipient, you
> are not authorized to read, print, retain, copy, disseminate, distribute, or
> use this message or any part thereof. If you receive this message in error,
> please notify the sender immediately and delete all copies of this message.
>
>
> _______________________________________________
> Yale CAS mailing list
> [email protected]
> http://tp.its.yale.edu/mailman/listinfo/cas
>
>
>
> This message contains information that may be privileged or confidential
> and is the property of the Capgemini Group. It is intended only for the
> person to whom it is addressed. If you are not the intended recipient, you
> are not authorized to read, print, retain, copy, disseminate, distribute, or
> use this message or any part thereof. If you receive this message in error,
> please notify the sender immediately and delete all copies of this message.
>
>
> _______________________________________________
> Yale CAS mailing list
> [email protected]
> http://tp.its.yale.edu/mailman/listinfo/cas
>
>
>   This message contains information that may be privileged or confidential
> and is the property of the Capgemini Group. It is intended only for the
> person to whom it is addressed. If you are not the intended recipient, you
> are not authorized to read, print, retain, copy, disseminate, distribute, or
> use this message or any part thereof. If you receive this message in error,
> please notify the sender immediately and delete all copies of this message.
>
>
> _______________________________________________
> 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

Reply via email to