updated eto

pull/3210/head
Ahmet Çotur 6 years ago
parent e4c5f3dc3b
commit d4d4540321

@ -6,9 +6,7 @@ namespace Volo.Abp.Identity
public class IdentityClaimTypeEto
{
public Guid Id { get; set; }
public Guid? TenantId { get; set; }
public string Name { get; set; }
public bool Required { get; set; }

@ -1,4 +1,5 @@
using System;
using System.Collections.Generic;
namespace Volo.Abp.Identity
{
@ -12,11 +13,11 @@ namespace Volo.Abp.Identity
public string Name { get; set; }
public string NormalizedName { get; set; }
public bool IsDefault { get; set; }
public bool IsStatic { get; set; }
public bool IsPublic { get; set; }
}
}

@ -19,18 +19,18 @@ namespace Volo.Abp.Identity
{
public override void ConfigureServices(ServiceConfigurationContext context)
{
Configure<AbpAutoMapperOptions>(options =>
{
options.AddProfile<IdentityDomainMappingProfile>();
});
Configure<AbpDistributedEventBusOptions>(options =>
{
options.EtoMappings.Add<IdentityUser, UserEto>();
options.EtoMappings.Add<IdentityClaimType, IdentityClaimTypeEto>();
options.EtoMappings.Add<IdentityRole, IdentityRoleEto>();
});
Configure<AbpAutoMapperOptions>(options =>
{
options.AddProfile<IdentityDomainMappingProfile>(validate: true);
});
var identityBuilder = context.Services.AddAbpIdentity(options =>
{
options.User.RequireUniqueEmail = true;

Loading…
Cancel
Save