Created
August 31, 2014 18:43
-
-
Save shawnmclean/9fa535aa859cff8aca18 to your computer and use it in GitHub Desktop.
Setting up UserTokenProvider
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IDataProtectionProvider provider = app.GetDataProtectionProvider(); | |
if (provider != null) | |
{ | |
userManager.UserTokenProvider = new DataProtectorTokenProvider<IdentityUser, Guid>(provider.Create("User Tokens")); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment