Closed alessandrogviana closed 9 years ago
I have a fix for the first issue you see, but very stumped on the second issue. I'm trying the same versions of CakePHP and SimpleSamlPHP as you and seem to be getting the same error when I return from a SAML login - still working on why. Will post back when I find something.
Ok, so it looks like it is caused by conflicting sessions between CakePHP and SimpleSamlPHP. From what I have read here (see the note in the prerequisites section), you will need to config SimpleSamlPHP to store session information using a method other than phpsession.
Here is the relevant config in simplesamlphp/config/config.php:
/*
* Configure the datastore for simpleSAMLphp.
*
* - 'phpsession': Limited datastore, which uses the PHP session.
* - 'memcache': Key-value datastore, based on memcache.
* - 'sql': SQL datastore, using PDO.
*
* The default datastore is 'phpsession'.
*
* (This option replaces the old 'session.handler'-option.)
*/
'store.type' => 'sql',
I'm trying to configure SimpleSAMLPHP using CakePHP, in the project using just PHP it works fine but using CakePHP-simpleSAMLphp-Plugin I received the errors when I try to access the view :
And after the login I received the return :
I'm using CakePHP (2.5.2) and SimpleSAMLPHP (1.13.2)