Open Closed

2 factor authentication using mobile #3556


User avatar
0
shobhit created
  • ABP Framework version: v4.2.2
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"
  • How i can enable 2 factor authentication using mobile and Twillio as provider. Please share the step by step instructions.

3 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    HI,

    We have document for this: https://docs.abp.io/en/commercial/latest/modules/identity/two-factor-authentication

  • User Avatar
    0
    shobhit created

    Hello liangshiwei, I have followed this document. make following changes:

    1- IdentityServer/ HttpApi.Host csproj --> appsettings.json "AbpTwilioSms": { "AccountSId": "AC13c30f4dc66c93a4cmnsdfkjlahfk3ae9244", "AuthToken": "a547ed14luofasd9dc5ef6f0c3cb", "FromNumber": "+12504365764" },

    2- IdentityServer/ HttpApi.Host csproj --> Added TwilioSMS Nuget packege

    3- Add below code in *Module Class of IdentityServer/ HttpApi.Host csproj

    [DependsOn( ..... ...... typeof(AbpTwilioSmsModule) )]

    4- Host admin kept the 2F optional, Tenant Admin kept the 2F optional, User kep 2F mandatory

    5- Now 2 problem statement:

    1. I login as user. When i click on verify phone then verifican UI is not getting displayed
    2. In the login screen : provide userid/ password. Next screen shown 2F provider options but getting only email
  • User Avatar
    0
    shobhit created

    Hello liangshiwei, Issue resolved. Thanks for your support.

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.3.0-preview. Updated on April 16, 2025, 12:13