Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class UserA : IdentityUser
- {
- . . .
- public async Task<ClaimsIdentity> GenerateUserIdentityAsync(UserManager<UserA > manager)
- {
- var userIdentity = await manager.CreateIdentityAsync(this, DefaultAuthenticationTypes.ApplicationCookie);
- // Add custom user claims here
- return userIdentity;
- }
- }
- public class UserB : IdentityUser
- {
- . . .
- public async Task<ClaimsIdentity> GenerateUserIdentityAsync(UserManager<UserB > manager)
- {
- var userIdentity = await manager.CreateIdentityAsync(this, DefaultAuthenticationTypes.ApplicationCookie);
- // Add custom user claims here
- return userIdentity;
- }
- }
Add Comment
Please, Sign In to add comment