AspNetIdentitySample.Models.ApplicationUser.GenerateUserIdentityAsync C# (CSharp) Method

GenerateUserIdentityAsync() public method

public GenerateUserIdentityAsync ( UInt64>.UserManager manager ) : Task
manager UInt64>.UserManager
return Task
    public async Task<ClaimsIdentity> GenerateUserIdentityAsync(UserManager<ApplicationUser, UInt64> manager)
    {
      // Note the authenticationType must match the one defined in CookieAuthenticationOptions.AuthenticationType
      var userIdentity = await manager.CreateIdentityAsync(this, DefaultAuthenticationTypes.ApplicationCookie);
      // Add custom user claims here
      return userIdentity;
    }
  }