jkornobis
2012-10-30 7fac4dc87b2507227666db9b74d83090f38d62e7
refs
author jkornobis <jkornobis@linagora.com>
Tuesday, October 30, 2012 10:08 -0400
committer jeremie kornobis <jkornobis@linagora.com>
Monday, November 12, 2012 09:29 -0500
commit7fac4dc87b2507227666db9b74d83090f38d62e7
tree fabc960915441a78d2ada8c823b086d8ce01ac71 tree | zip | gz
parent f2bc8599f850131bb4118ebd5dd7118717d50c24 view | diff
Grancefully handle SSO redirections on Ajax requests

On some SSO systems, when the SSO session is expired,
the system intercept HTTP requests and send a 302 "Found" HTTP code to the login page.
This patch handle this case in Roundcube Ajax requests, to redirect to the SSO login page.
Note that request.status don't have the 302 code (at least on Firefox), so we have to check the response headers for a Location field and redirect manually.
1 files modified
5 ■■■■■ changed files
program/js/app.js 5 ●●●●● diff | view | raw | blame | history