Skip to content

Configure CanGenerateTwoFactorTokenAsync for default token providers #12762

Description

@arisliang

I am trying to change PhoneNumberTokenProvider to not generate 2FA, but there seems to be no way to configure this currently in v2.1.

It would be good to be able to remove a token provider, so I could add a custom one back; or add option to override the 2FA generation flag for the default providers.

Alternatively I'm thinking to override the AddDefaultTokenProviders, which I'd rather not, because for my use, the rest of the default providers are fine.

Activity

  1. added
    area-identity
    on Jul 31, 2019
  2. blowdart commented on Jul 31, 2019

    @blowdart
    Contributor

    We've pretty much all but given up on phone auth as an industry, and it's not in our templates any more so it's unlikely we'd do much if any work on it any more.

    @HaoK is there a reason we still add the 2fa provider by default?

  3. added this to the Backlog milestone on Sep 11, 2019
  4. HaoK commented on Oct 6, 2020

    @HaoK
    Member

    We generally just keep things the same for back compat, otherwise apps that were using phone 2fa all of a sudden would explode after upgrading

  5. added
    affected-few
    enhancement
    severity-minor
    on Oct 6, 2020
  6. arisliang commented on Oct 7, 2020

    @arisliang
    Author

    Noted, I'm fine with what is it now. Will just use some workaround.

  7. added theissue type on May 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    affected-fewarea-identityenhancementseverity-minor

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions