Open Closed

How to add custom authentication token providers? as IUserTwoFactorTokenProvider<AppUser> #76


User avatar
0
rajasekhard2015 created

Hi,

I want to add custom authentication token provider for passwordless authentication.

How can i add custom provider, please suggest me the proper steps

            context.Services.AddAbpIdentity(options =>
            {
                options.Tokens.ProviderMap[GoogleAuthenticationProvider.Name] = new TokenProviderDescriptor(typeof(GoogleAuthenticationProvider));
            })
           .AddDefaultTokenProviders();

2 Answer(s)
  • User Avatar
    1
    alper created
    Support Team Director

    I've created a Gist with 6 steps to implement this feature. https://gist.github.com/ebicoglu/04cedc99d0365f4d20a6233cca69cf5b

    Note:
    This guideline will be a document after next release (April 4, 2020). And the URL will be https://docs.abp.io/en/commercial/latest/guides/implementing-passwordless-authentication

  • User Avatar
    0
    rajasekhard2015 created

    Thank you. it's working

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 v9.3.0-rc.1. Updated on June 18, 2025, 12:26