Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When I check the SimpleSAMLphp Authentication module and and click install I get the above error, SimpleSAMLphp module requires the simplesamlphp library. Simplesamlphp is working correctly. Not sure what else I need to do.
Thanks.
Cyndi
Comments
Comment #2
cyndih CreditAttribution: cyndih commentedI already installed composer manager, and ran the init command, and the drupal-update command. And simplesamlphp shows up under status of packages managed by Composer.
Comment #3
svendecabooterCan you run the "composer update" command as well?
It seems somehow the class can't be loaded through Composer.
In the latest codebase there's also an alternative way to link your SimpleSAMLphp installation (via settings.php). Check the updated README.
Maybe you can get it working that way?
Comment #4
cyndih CreditAttribution: cyndih commentedI was able to get it to work with the simplesamlphp_auth 8.x-1.0-alpha1 and the symbolic links to config and metadata.
Comment #5
cyndih CreditAttribution: cyndih commentedComment #6
cobaltjacket CreditAttribution: cobaltjacket commentedcyndih, could you please be more specific about what links you created and where? Thanks.
Comment #7
cyndih CreditAttribution: cyndih commentedIn README.md for simplesamlphp_auth under INSTALLATION WITH COMPOSER MANAGER number 5 says where to symbolic link config and metadata, inside of docroot/vendor/simplesamlphp/simplesamlphp. Thanks.
Comment #8
pimok3000 CreditAttribution: pimok3000 commentedThis only seems to work with PHP5. No matter what i do (since hours) version 1.14.x and PHP 7.0.7 don´t work with the latest SimpleSAMLphp -dev version.
Installation via composer from my drupal8 root folder via composer went well using the debian unstable repo
- Installing simplesamlphp/simplesamlphp (v1.14.3)
but there is no vendor/simplesamlphp folder after that. Those folders are created in my users home folder. Even giving apache access to those folders AND symlinking them or putting them into settings.php using the right path does not help. When i try to enable the simplesamlphp Module using the modules page in my website it keeps saying:
SimpleSAMLphp module requires the simplesamlphp library. See README file for installation instructions.
Doing a composer drupal-update from the root-folder gives me a:
- Installation request for simplesamlphp/simplesamlphp 1.13.2 -> satisfiable by simplesamlphp/simplesamlphp[v1.13.2].
- simplesamlphp/simplesamlphp v1.13.2 requires php ~5.3 -> your PHP version (7.0.7) does not satisfy that requirement.
Comment #9
pimok3000 CreditAttribution: pimok3000 commentedSo the module needs PHP7 support
Comment #10
bradjones1See #2731607: Change dependency on SSP to newer version. Re: PHP 7 support, this has changed in the upstream library - see https://github.com/simplesamlphp/simplesamlphp/blob/v1.14.4/composer.jso...
Comment #11
snufkin CreditAttribution: snufkin as a volunteer commentedThe module now depends on a newer version of the library, so the PHP 7 support should be there now. I'll close this for now, please treat PHP7 compatibility issues as separate bugs and open a new ticket.
Comment #12
nielsvoo CreditAttribution: nielsvoo commentedPlease help. I simply can't enable the module in Drupal 8. the error "SimpleSAMLphp module requires the simplesamlphp library" just disappears every time.
This is what I've got at the moment.
- A working simplesaml installation at /var/www/simplesamlphp
- The apache Alias /simplesaml /var/www/simplesamlphp/www
therefore the saml installation is available from url; example.com/simplesaml
- Authentication thru ADFS server is working i can see my attributes.
- In setting.php this is added
// SimpleSaml Config
$settings['simplesamlphp_dir'] = '/var/www/simplesamlphp';
- Switched store session type from phpsession to SQL
- Created a mysql db for the sessions, tested and works.
What to do?
Thanks
Nielsvoo