Created on 1 November 2023, 8 months ago
Updated 7 November 2023, 8 months ago

Problem/Motivation

Hi,
I'm running into a weird issue on our IDP using the Drupal Login page(drupalauth:External). I can log into Drupal directly just fine, but when I try to authenticate via SimleSAML, I get this error:

The website encountered an unexpected error. Please try again later.
Error: Undefined constant SimpleSAML\Module\drupalauth\Auth\Source\External::DRUPALAUTH_EXTERNAL in Drupal\drupalauth4ssp\SspHandler->saveIdToStat() (line 106 of modules/contrib/drupalauth4ssp/src/SspHandler.php).

I think it has something to do with the $state, but I can't figure out what. Running Drush state:get system.cron_last returns nothing

I've tried using a fresh browser and new account, running Drush CR,CRON, composer update - nothing seems to work. If you can even point me in a direction for how to troubleshoot, I'm happy to keep working on this.

πŸ› Bug report
Status

Fixed

Version

1.4

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States rex.barkdoll

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @rex.barkdoll
  • πŸ‡ΊπŸ‡ΈUnited States rex.barkdoll

    Note: I have managed to create a workaround by pointing to the SimpleSamlPHP login page instead of the Drupal login page, but I still have no idea what the error means or why it started coming up. I'd also like to go back to using my Drupal login page because it's going to be a headache to make sure my theme is up to date on SimpleSaml.

  • Status changed to Fixed 8 months ago
  • πŸ‡³πŸ‡ΏNew Zealand RoSk0 Wellington

    Thanks for the report Rex.

    I believe that you updated this module , but drupalauth/simplesamlphp-module-drupalauth module wasn't updated because of the bug in the version constraint.

    This is fixed in the version 8.x-1.4 of this module.

    Please run composer update drupal/drupalauth4ssp --with-dependencies and double check that you have version 8.x-1.4 of this module and version 1.9.3 of the drupalauth/simplesamlphp-module-drupalauth module.

  • πŸ‡ΊπŸ‡ΈUnited States rex.barkdoll

    RoSk0, you are an ABSOLUTE LEGEND! Thank you.

    That has fixed everything and our SSO is working properly again. I appreciate your help :)

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.69.0 2024