Skip to content
Snippets Groups Projects
Commit 889c7bf6 authored by Tim Steiner's avatar Tim Steiner
Browse files

Prevent CAS from doing "keep-alive" redirects on POST requests.

parent 3f145d35
Branches
Tags
No related merge requests found
...@@ -23,6 +23,11 @@ class Creq_Controller_Action extends Unl_Controller_Action ...@@ -23,6 +23,11 @@ class Creq_Controller_Action extends Unl_Controller_Action
return; return;
} }
// If a user is already logged in, only redirect to CAS if this is a GET request.
if (Zend_Auth::getInstance()->hasIdentity() && $_SERVER['REQUEST_METHOD'] != 'GET') {
return;
}
if (array_key_exists('unl_sso', $_COOKIE) || Zend_Auth::getInstance()->hasIdentity()) { if (array_key_exists('unl_sso', $_COOKIE) || Zend_Auth::getInstance()->hasIdentity()) {
Auth_UserModel::authenticateUser(); Auth_UserModel::authenticateUser();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment