Commit a6e43e21 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

Merge branch '6088-logout-in-cas-mode-make-a-redirection-error' into '1.4-dev'

Resolve "Logout in cas mode make a redirection error"

See merge request fusiondirectory/fd!899
Showing with 4 additions and 1 deletion
+4 -1
...@@ -67,7 +67,10 @@ class LoginCAS extends LoginMethod ...@@ -67,7 +67,10 @@ class LoginCAS extends LoginMethod
/* Reset error messages */ /* Reset error messages */
$message = ''; $message = '';
// force CAS authentication /* Remove query string from redirection URL to avoid signout loops */
phpCAS::setFixedServiceURL(preg_replace('/\?.*$/', '', phpCAS::getServiceURL()));
/* Force CAS authentication */
phpCAS::forceAuthentication(); phpCAS::forceAuthentication();
static::$username = phpCAS::getUser(); static::$username = phpCAS::getUser();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment