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

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11