Browse Source

updated eto

pull/3210/head
Ahmet Çotur 7 years ago
parent
commit
d4d4540321
  1. 4
      modules/identity/src/Volo.Abp.Identity.Domain.Shared/Volo/Abp/Identity/IdentityClaimTypeEto.cs
  2. 5
      modules/identity/src/Volo.Abp.Identity.Domain.Shared/Volo/Abp/Identity/IdentityRoleEto.cs
  3. 12
      modules/identity/src/Volo.Abp.Identity.Domain/Volo/Abp/Identity/AbpIdentityDomainModule.cs

4
modules/identity/src/Volo.Abp.Identity.Domain.Shared/Volo/Abp/Identity/IdentityClaimTypeEto.cs

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

5
modules/identity/src/Volo.Abp.Identity.Domain.Shared/Volo/Abp/Identity/IdentityRoleEto.cs

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

12
modules/identity/src/Volo.Abp.Identity.Domain/Volo/Abp/Identity/AbpIdentityDomainModule.cs

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

Loading…
Cancel
Save