Add Two factor authentication switcher and phone numbers support to storefront API
yecli opened this issue · comments
Use this article to add 2FA into storefront.
https://docs.microsoft.com/en-us/aspnet/core/security/authentication/2fa?view=aspnetcore-1.1
User cabinet
User stories
- As User I want to enable/disable Two Factor authentication in my cabinet
- As User I want to add / change my phone number only after confirming the code received via SMS
Technical details:
- Need to add the new storefront API for these requriements:
POST storefrontapi/account/phonenumber
- for add/change phone number (only after verification)
POST storefrontapi/account/phonenumber/verify
- for verify phone number
DELETE storefrontapi/account/phonenumber
- for delete phone number
POST storefrontapi/account/twofactorauthentification
- for on/off 2FA