Advertisement
AuriR

ASP.NET MVC Class ElevenNoteApplicationUser

Jun 2nd, 2015
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.69 KB | None | 0 0
  1.   // You can add profile data for the user by adding more properties to your ApplicationUser class, please visit http://go.microsoft.com/fwlink/?LinkID=317594 to learn more.
  2.     public class ElevenNoteApplicationUser : IdentityUser
  3.     {
  4.         public async Task<ClaimsIdentity> GenerateUserIdentityAsync(UserManager<ElevenNoteApplicationUser> manager)
  5.         {
  6.             // Note the authenticationType must match the one defined in CookieAuthenticationOptions.AuthenticationType
  7.             var userIdentity = await manager.CreateIdentityAsync(this, DefaultAuthenticationTypes.ApplicationCookie);
  8.  
  9.             // Add custom user claims here
  10.             return userIdentity;
  11.         }
  12.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement