netzbegruenung / keycloak-mfa-plugins

Keycloak plugins for MFA (enforce MFA, SMS authentication step, native app integration)
Apache License 2.0
46 stars 12 forks source link

Phone Number required action triggering constantly #28

Closed svenseeberg closed 2 years ago

svenseeberg commented 2 years ago

When logging in a user is always asked for a new phone number, while sending the SMS always uses the development mode.

melegiul commented 2 years ago

while sending the SMS always uses the development mode.

Probably caused by loading the wrong config during required action executions Database state:

select alias, name, value from authenticator_config c join authenticator_config_entry e on c.id = e.authenticator_id where e.name = 'simulation' and alias = 'sms-2fa';
  alias  |    name    | value 
---------+------------+-------
 sms-2fa | simulation | true
 sms-2fa | simulation | false
 sms-2fa | simulation | false

Related to #24

svenseeberg commented 2 years ago

Indeed, the database was not clean.