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.
Hi,
I installed and configured simplePHPAuth module.
(for testing)I was able to authenticate to IDP using /simplesaml ->Authentication -> Test configured authentication sources -> default-sp after it redirected to IDP, i logged in and subject and attributes are displayed.
But when i navigate to drupal site -> Login -> Federated Login link , it simply showing /user/login not actually going to IDP page for authentication.
Am i missing anything here?
Thanks
Comments
Comment #2
jayanth CreditAttribution: jayanth commentedhttps://www.drupal.org/node/2843079
This issue is saying, the login page of drupal will show list of IDPs but i don't see any.
But at the time of testing using /simplesaml i saw list of IDPs.
Comment #3
diamondseaVerify that you are not using the "phpsession" storage option in your simplesaml config.php file. If you are, it will silently redirect to /user/login. (see #2897043: /saml_login redirects to /user/login. Notify if using PHPSESSION for session storage)
Verify that you have the module enabled on the settings page for the module.
I haven't been able to figure out why, but the code seems to be failing checking for this checkbox in
.../simplesamlphp_auth/src/Controller/SimplesamlphpAuthController.php on line 140 . I had to change the line from
if (!$this->simplesaml->isActivated()) {
to
if (FALSE && !$this->simplesaml->isActivated()) {
to get it to work for me. (a dirty hack, but got it working until I can figure out what the issue is returning the isActivated() setting properly) (See #2897298: /saml_login redirects to /user/login. simplesaml->IsActivated() not returning proper value)
Comment #4
dakku CreditAttribution: dakku commentedComment #5
jimafisk CreditAttribution: jimafisk at Jantcu commentedAfter authentication, I was getting a 303 error that pushed me to
/user/login
. Turns out I forgot to set$config['store.type'] = 'sql';
insimplesamlphp/config/config.php
(my understanding is you can't leave store.type as phpsession in D8).I also set the database credentials:
I'm on acquia so just did a switch statement on
$_ENV['AH_SITE_ENVIRONMENT']
to set different creds for dev, test, and prod.Comment #6
BerdirClosing as this was a support request.