scheb / two-factor-bundle

[ABANDONED] Two-factor authentication for Symfony 2 & 3 applications 🔐. Please use the newer versions from https://github.com/scheb/2fa.
https://github.com/scheb/2fa
MIT License
385 stars 111 forks source link

User is not in authentication process #281

Closed faizan944 closed 4 years ago

faizan944 commented 4 years ago

@scheb I faced an issue while integrating your two step verification package. I used symfony version 3.4 and two step verification bundle 3.17.0. Actually the issue is whenever I try to hit /2fa I got an error message "User is not in authentication process" Actually I used sonata admin as well so sonata provide its own table for user called "fos_user_user" and its configuration os only possible through xml so I am unable to implement "TwoFactorInterface" interface using xml.

scheb commented 4 years ago

Actually the issue is whenever I try to hit /2fa I got an error message "User is not in authentication process"

Is the path /2fa within the firewall's pattern?

Actually I used sonata admin as well so sonata provide its own table for user called "fos_user_user" and its configuration os only possible through xml so I am unable to implement "TwoFactorInterface" interface using xml.

I don't know the configuration options of fosuserbundle in detail, but I'm relatively sure you can implement your own user entity class and make it to use that one instead. Would allow you to implement the TwoFactorInterfaces, because with out these, two-factor authentication will not work.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.