public static void ConfigureIdentity() { Logins = new UserLoginStoreSync(new EFUserLoginStore<UserLogin>(new DbContextFactory<IdentityDbContext>())); Users = new UserStoreSync(new EFUserStore<User>(new DbContextFactory<IdentityDbContext>())); Secrets = new UserSecretStoreSync(new EFUserSecretStore<UserSecret>(new DbContextFactory<IdentityDbContext>())); Roles = new RoleStoreSync(new EFRoleStore<Role, UserRole>(new DbContextFactory<IdentityDbContext>())); RoleClaimType = ClaimsIdentity.DefaultRoleClaimType; UserIdClaimType = "http://schemas.microsoft.com/aspnet/userid"; UserNameClaimType = "http://schemas.microsoft.com/aspnet/username"; ClaimsIssuer = ClaimsIdentity.DefaultIssuer; }
public static void ConfigureIdentity() { Logins = new UserLoginStoreSync(new EFUserLoginStore <UserLogin>(new DbContextFactory <IdentityDbContext>())); Users = new UserStoreSync(new EFUserStore <User>(new DbContextFactory <IdentityDbContext>())); Secrets = new UserSecretStoreSync(new EFUserSecretStore <UserSecret>(new DbContextFactory <IdentityDbContext>())); Roles = new RoleStoreSync(new EFRoleStore <Role, UserRole>(new DbContextFactory <IdentityDbContext>())); RoleClaimType = ClaimsIdentity.DefaultRoleClaimType; UserIdClaimType = "http://schemas.microsoft.com/aspnet/userid"; UserNameClaimType = "http://schemas.microsoft.com/aspnet/username"; ClaimsIssuer = ClaimsIdentity.DefaultIssuer; }