You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 20, 2018. It is now read-only.
Currently we can change the default token providers on TokenOptions in IdentityOptions. But in my case I need to specify custom token provider when using the method (assume that GenerateEmailConfirmationTokenAsync() and ConfirmEmailAsync()) because of the application which i made send a link if the user uses web client or send a code (Totp) if the user uses mobile client. In short, what do you think to specify token providers inline when generating and consuming the methods.
The text was updated successfully, but these errors were encountered:
We are adding the ability to specify instances in the provider map, I'm not sure if that completely addresses your issue, but you will be able to configure a different instance for each method if you so like via #983
If you want to switch between different providers in a different fashion you probably have to drop down and use the lower level methods:
Generate/VerifyUserTokenAsync(user, "YourCustomProvider", "ResetPassword"), those public apis are just sugar on top of that method with the IdentityOptions.Tokens.XyzProviderName hardcoded.
If you are managing the token provider instances instead of the user manager, you can just directly call into the provider with the appropriate purpose/user, you don't need to go through the user manager in this case.
Currently we can change the default token providers on TokenOptions in IdentityOptions. But in my case I need to specify custom token provider when using the method (assume that GenerateEmailConfirmationTokenAsync() and ConfirmEmailAsync()) because of the application which i made send a link if the user uses web client or send a code (Totp) if the user uses mobile client. In short, what do you think to specify token providers inline when generating and consuming the methods.
The text was updated successfully, but these errors were encountered: