logout redirection

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

logout redirection

thomas parquier
Hello,

How to set an automatic redirection after logout, like upon login ? For now the CAS server only shows a url to click to get back to casified app...

have a good day,
thomas
--
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
Reply | Threaded
Open this post in threaded view
|

Re: logout redirection

Scott Battaglia-2
You can provide the url as a "service" parameter.  You'll need to enable it in the configuration though (its a property on the LogoutController).

Cheers,
Scott


On Tue, Apr 27, 2010 at 12:08 PM, thomas parquier <[hidden email]> wrote:
Hello,

How to set an automatic redirection after logout, like upon login ? For now the CAS server only shows a url to click to get back to casified app...

have a good day,
thomas
--
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
Reply | Threaded
Open this post in threaded view
|

Re: logout redirection

Aurélien Veillas
Hello,

Hope this is correct and this this helps also:

Le 28/04/2010 05:36, Scott Battaglia a écrit :
You can provide the url as a "service" parameter. 
On client side, when calling logout ==> phpCAS::logoutWithRedirectService("YourTargetUrl: exemple : <a class="moz-txt-link-freetext" href="http://">http://" . $_SERVER['SERVER_NAME'].$_SERVER['PHP_SELF'] ");

You'll need to enable it in the configuration though (its a property on the LogoutController).
On server side, in file " cas-servlet.xml ", add the property "p:followServiceRedirects="true" like that:

<bean id="logoutController" class="org.jasig.cas.web.LogoutController"
    p:centralAuthenticationService-ref="centralAuthenticationService"
    p:logoutView="casLogoutView"
    p:warnCookieGenerator-ref="warnCookieGenerator"
    p:ticketGrantingTicketCookieGenerator-ref="ticketGrantingTicketCookieGenerator"
    p:followServiceRedirects="true" />

Cheers,
Scott


On Tue, Apr 27, 2010 at 12:08 PM, thomas parquier <[hidden email]> wrote:
Hello,

How to set an automatic redirection after logout, like upon login ? For now the CAS server only shows a url to click to get back to casified app...

have a good day,
thomas
--
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
-- 
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
Reply | Threaded
Open this post in threaded view
|

Re: logout redirection

thomas parquier
works great !
thank you very much for your quick answers.

have a good day,
thomas parquier
---
http://www.web-attitude.fr/realisations/
msn : [hidden email]
softphone : [hidden email]
téléphone portable : +33601 822 056


2010/4/28 Aurélien Veillas <[hidden email]>
Hello,

Hope this is correct and this this helps also:

Le 28/04/2010 05:36, Scott Battaglia a écrit :
You can provide the url as a "service" parameter. 
On client side, when calling logout ==> phpCAS::logoutWithRedirectService("YourTargetUrl: exemple : http://" . $_SERVER['SERVER_NAME'].$_SERVER['PHP_SELF'] ");


You'll need to enable it in the configuration though (its a property on the LogoutController).
On server side, in file " cas-servlet.xml ", add the property "p:followServiceRedirects="true" like that:

<bean id="logoutController" class="org.jasig.cas.web.LogoutController"
    p:centralAuthenticationService-ref="centralAuthenticationService"
    p:logoutView="casLogoutView"
    p:warnCookieGenerator-ref="warnCookieGenerator"
    p:ticketGrantingTicketCookieGenerator-ref="ticketGrantingTicketCookieGenerator"
    p:followServiceRedirects="true" />

Cheers,
Scott


On Tue, Apr 27, 2010 at 12:08 PM, thomas parquier <[hidden email]> wrote:
Hello,

How to set an automatic redirection after logout, like upon login ? For now the CAS server only shows a url to click to get back to casified app...

have a good day,
thomas
--
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

-- 
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