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.
Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

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

    HI,

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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • 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
    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    shobhit created

    Hello liangshiwei, Issue resolved. Thanks for your support.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on September 21, 2026, 06:18
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.