Avata Suljettu

Role based 2 factor auth #3790


User avatar
0
shobhit luotu
  • 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 we can configure role level 2-factor authentication


3 Vastaus (t)
  • User Avatar
    0
    maliming luotu
    Tukitiimi Fullstack Developer

    hi

    Can you explain it in detail?

  • User Avatar
    0
    shobhit luotu

    Currently 2-factor can be enabled by host admin, tenant admin at tenant level or by user at user level. Do ABP have any provision to enable 2-factor for any particular role.

  • User Avatar
    0
    maliming luotu
    Tukitiimi Fullstack Developer

    hi

    1. You can customize the code to change the 2faof all users under the role when the role is changed.
    2. Or override the PasswordSignInAsyncmethod of SignInManager<IdentityUser> class and GetTwoFactorEnabledAsync of UserManager<IdentityUser>
Made with ❤️ on ABP v8.2.0-preview Updated on maaliskuuta 25, 2024, 15.11