drupalauth / simplesamlphp-module-drupalauth

simpleSAMLphp module that turns Drupal site into IdP(Identity Provider)
Other
24 stars 38 forks source link

Conflict with TFA addon #91

Open dnwk opened 1 year ago

dnwk commented 1 year ago

Describe the bug When Two-factor Authentication (TFA) is enabled for a Drupal account, it will generate SAML error when redirecting to TFA screen.

To Reproduce Steps to reproduce the behavior:

  1. For a user with Two-factor Authentication enabled, landed on Drupal from external site that requests SAML login
  2. Enter username password
  3. PHPSimpleSAML error page will show up before you have a chance to enter TFA code.
  4. see error Unhandled exception An unhandled exception was thrown. Debug information

The debug information below may be of interest to the administrator / help desk:

SimpleSAML\Error\Error: UNHANDLEDEXCEPTION

Backtrace: 1 www/_include.php:17 (SimpleSAML_exception_handler) 0 [builtin] (N/A) Caused by: SimpleSAML\Error\Exception: User not authenticated after login page. Backtrace: 3 modules/drupalauth/lib/Auth/Source/External.php:307 (SimpleSAML\Module\drupalauth\Auth\Source\External::resume) 2 modules/drupalauth/www/resume.php:12 (require) 1 lib/SimpleSAML/Module.php:266 (SimpleSAML\Module::process) 0 www/module.php:10 (N/A)

j4-m commented 9 months ago

@dnwk I presume you've see the Drupal.org issue by now?