MFA extension uses an encrypted attribute to store sensitive data.
You probably have a mismatch between your encryption_library and you encryption_key in the configuration file.
Check this documentation to generate a key that'll be valid with sodium.
Beware, if you already have encrypted values (AttributeEncryptedString attributes or AttributeEncryptedPassword) you might suffer data loss and need to follow the migration procedure (That seems unlikely as you key does not match your library in the first place, but better be safe!)
I hope this helps,
Stephen
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi All,
When I enabling the MFA and trying to add "Recovery codes", "Email" or "TOTP" to any user I am getting error:
Any thoughts?
Thanks
Hi Yuri,
MFA extension uses an encrypted attribute to store sensitive data.
You probably have a mismatch between your
encryption_library
and youencryption_key
in the configuration file.Check this documentation to generate a key that'll be valid with sodium.
Beware, if you already have encrypted values (AttributeEncryptedString attributes or AttributeEncryptedPassword) you might suffer data loss and need to follow the migration procedure (That seems unlikely as you key does not match your library in the first place, but better be safe!)
I hope this helps,
Stephen
Hi Stephen,
Thank you. Working now!
Regards
Yuri