You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If we enable the option "Force two factor authentication" from the module settings (/admin/config/system/oe_authentication), we are still able to select the password authentication method from ECAS.
When we do so, we get a vague error in Drupal, which is very confusing for end users:
There was a problem validating your login, please contact a site administrator.
And the Drupal logs contain:
Error when validating ticket: Error Code INVALID_STRENGTH: ticket 'ST--' does not match requested strengths: [PASSWORD_MOBILE_APP, PASSWORD_SOFTWARE_TOKEN, PASSWORD_SMS]
Ideally EULogin should only list applicable login options.
I believe https://citnet.tech.ec.europa.eu/CITnet/confluence/display/IAM/Multi-factor+authentication is related and explains 3 types of authentication methods (basic/medium/high).
Shouldn't the module expose these 3 options (as select?) in settings instead of the "Force two factor authentication" checkbox?
Thank you
The text was updated successfully, but these errors were encountered:
vever001
changed the title
Restrict login options when enabling "Force two factor authentication" (add "Authentication level" option)
2FA and authentication level
Nov 22, 2023
I just realized that we need to clear all drupal caches and after that we only see the 2FA options as expected.
So I was wrong but this seems to suggest there might be some cache invalidation/metadata missing when oe_authentication alters the CAS redirect.
e.g:
\Drupal\oe_authentication\Event\EuLoginEventSubscriber::forceTwoFactorAuthentication using oe_authentication.settings (needs cache metadata to be added)
\Drupal\oe_authentication\Event\EuLoginEventSubscriber::processUserProperties using user.settings
This is less of a problem but might be worth looking into.
Hello,
If we enable the option "Force two factor authentication" from the module settings (/admin/config/system/oe_authentication), we are still able to select the password authentication method from ECAS.
When we do so, we get a vague error in Drupal, which is very confusing for end users:
And the Drupal logs contain:
Ideally EULogin should only list applicable login options.
I believe https://citnet.tech.ec.europa.eu/CITnet/confluence/display/IAM/Multi-factor+authentication is related and explains 3 types of authentication methods (basic/medium/high).
Shouldn't the module expose these 3 options (as select?) in settings instead of the "Force two factor authentication" checkbox?
Thank you
The text was updated successfully, but these errors were encountered: