Cleared caches and that didn't help too. Same error: "Invalid Login Token: [my username]"
Alain Raap
Alain Raap による投稿
Cleared caches and that didn't help too. Same error: "Invalid Login Token: [my username]"
The redirect was not working because I didn't use redis as store.type. With 'phpsession' as store.type in config.php of SimpleSAMLPHP, my session was lost immediately after successful authentication. After installation of the predis client I managed to login into Moodle via the IDP (SimpleSAMLPHP with LDAP configured as provider).
For who's interested, I got this testcase working (SimpleSAMLPHP with Auth SAML2 SSO plugin together with LDAP login). The problem was to integrate Redis (predis client must be installed inside the SimpleSAMLPHP framework). That was a challenge to get this working, because I couldn't install predis via composer.phar (no internet connection available). I downloaded a version of the Redis module for SimpleSAMLPHP and the Predis client (as zipfiles). I uploaded them in a new directory artifact in the root folder of SimpleSAMLPHP (I had to add a version attribute in the composer.json of the zipfiles) and ran "php composer.phar update" in the root folder of SimpleSAMLPHP. If composer.phar is not on your system you can download this at https://github.com/composer
SimpleSAML module Redis:
https://github.com/ColourboxDevelopment/simplesamlphp-module-redis
Predis-client:
https://github.com/nrk/predis
Here's an article to install new modules without internet:
https://stackoverflow.com/questions/26378840/composer-how-to-add-a-dependency-without-network-connection
Another challenge to get Moodle running and performing well
Working in a large organisation myself, the challenge is to find the commitment and experience of other collegues to get things working smooth. Coorperation is the most important when you're dealing with issues like performance or configuration problems.
Try to install and configure redis caching, if necessary I can share my experiences