So you have two cas.properties? which ones actually do exist? Is one 
overriding the other?



Removing variables, I would start out with the default configuration (take 
out etc/cas) and once logout is working, I would start moving cas.properties 
out of WEB-INF.

If that also fails, I would turn on DEBUG for spring-webflow and see why the 
logout webflow is not taking the redirect url.



From: Stephan Arts [mailto:[email protected]]
Sent: Monday, August 25, 2014 11:13 PM
To: [email protected]
Subject: Re: [cas-user] [CAS 4] Logout Service Redirect not working



Hi Misagh,

The service is defined in the registry as followed:

https?://(a-zA-Z0-9\.)*cosmos.esa.int/.*

Though with the default catch-all, the behaviour is the same.

I initiate the logout as followed:

https://cas-test.cosmos.esa.int/logout?service=http://test.cosmos.esa.int

Regards,

Stephan

On 25/08/14 18:06, Misagh Moayyed wrote:

Is the service defined in your registry? How are you initiating logout?



From: Stephan Arts [mailto:[email protected]]
Sent: Monday, August 25, 2014 4:24 AM
To: [email protected] <mailto:[email protected]>
Subject: [cas-user] [CAS 4] Logout Service Redirect not working



Hi,

We am running CAS 4.0 with an overlay and a custom ticket-registry backend.

We have been preparing a migration from cas 3.5.2 to 4.0 for the past 6 
months, and everything is working beautifully except for the 
service-redirect after logout.

I've been investigating the issue a while now, but I am having trouble 
discovering what goes wrong.

I've changed WEB-INF/spring-configuration/propertyFileConfigurer.xml to 
this:

 35     <!--
 36       First check cas.properties in /etc
 37       If it is not present, or if not all properties are available, 
check the default.
 38     -->
 39     <context:property-placeholder location= 
<file:///\\%5C%5Cetc%5Ccas.properties> "file:/etc/cas.properties" order="1"
 40         ignore-unresolvable="true" ignore-resource-not-found="true" />
 41     <context:property-placeholder location="/WEB-INF/cas.properties" 
order="2"/>


I've got this in cas.properties:
      cas.logout.followServiceRedirects=true

The change to the propertyFileConfigurer.xml is new in our 4.0 build. I know 
the properties are read from there just fine because I can override 
host.name in /etc/cas.properties to change it from what is inside 
WEB-INF/cas.properties

Both WEB-INF/cas.properties and /etc/cas.properties have the 
cas.logout.followServiceRedirects=true line in them.

With DEBUG logging enabled I see entries like this:

2014-08-25 09:55:42,262 DEBUG 
[org.jasig.cas.web.support.CasArgumentExtractor] - <Extractor generated 
service for: http://test.cosmos.esa.int>

When I do a login and when I do a logout, so that seems to work well. But no 
indication as to why it wouldn't redirect me back to the service.

The documentation I found here[0] would suggest that having a valid service 
definition and the cas.logout.followServiceRedirects=true property should 
suffice.

Where would you suggest I continue my quest to find the source of the 
problem?


--
HE Space Operations B.V. for ESA - European Space Agency

Stephan Arts_
Senior UNIX Engineer

Research & Scientific Support Department
Science & Robotic Exploration Directorate (SRE-S)

[0] http://jasig.github.io/cas/4.0.0/installation/Logout-Single-Signout.html


-- 
You are currently subscribed to [email protected] 
<mailto:[email protected]>  as: [email protected] 
<mailto:[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] 
<mailto:[email protected]>  as: [email protected] 
<mailto:[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] 
<mailto:[email protected]>  as: [email protected] 
<mailto:[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

Reply via email to