Browse Source

#3265 Set remote service name for the identity module

pull/3269/head
Halil İbrahim Kalkan 7 years ago
parent
commit
5d22dc7732
  1. 7
      modules/identity/src/Volo.Abp.Identity.Application.Contracts/Volo/Abp/Identity/IdentityRemoteServiceConsts.cs
  2. 4
      modules/identity/src/Volo.Abp.Identity.HttpApi.Client/Volo/Abp/Identity/AbpIdentityHttpApiClientModule.cs
  3. 3
      modules/identity/src/Volo.Abp.Identity.HttpApi/Volo/Abp/Identity/IdentityRoleController.cs
  4. 2
      modules/identity/src/Volo.Abp.Identity.HttpApi/Volo/Abp/Identity/IdentityUserController.cs
  5. 2
      modules/identity/src/Volo.Abp.Identity.HttpApi/Volo/Abp/Identity/IdentityUserLookupController.cs
  6. 2
      modules/identity/src/Volo.Abp.Identity.HttpApi/Volo/Abp/Identity/ProfileController.cs

7
modules/identity/src/Volo.Abp.Identity.Application.Contracts/Volo/Abp/Identity/IdentityRemoteServiceConsts.cs

@ -0,0 +1,7 @@
namespace Volo.Abp.Identity
{
public static class IdentityRemoteServiceConsts
{
public const string RemoteServiceName = "AbpIdentity";
}
}

4
modules/identity/src/Volo.Abp.Identity.HttpApi.Client/Volo/Abp/Identity/AbpIdentityHttpApiClientModule.cs

@ -9,13 +9,11 @@ namespace Volo.Abp.Identity
typeof(AbpHttpClientModule))] typeof(AbpHttpClientModule))]
public class AbpIdentityHttpApiClientModule : AbpModule public class AbpIdentityHttpApiClientModule : AbpModule
{ {
public const string RemoteServiceName = "AbpIdentity";
public override void ConfigureServices(ServiceConfigurationContext context) public override void ConfigureServices(ServiceConfigurationContext context)
{ {
context.Services.AddHttpClientProxies( context.Services.AddHttpClientProxies(
typeof(AbpIdentityApplicationContractsModule).Assembly, typeof(AbpIdentityApplicationContractsModule).Assembly,
RemoteServiceName IdentityRemoteServiceConsts.RemoteServiceName
); );
} }
} }

3
modules/identity/src/Volo.Abp.Identity.HttpApi/Volo/Abp/Identity/IdentityRoleController.cs

@ -1,5 +1,4 @@
using System; using System;
using System.Collections.Generic;
using System.Threading.Tasks; using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
using Volo.Abp.Application.Dtos; using Volo.Abp.Application.Dtos;
@ -7,7 +6,7 @@ using Volo.Abp.AspNetCore.Mvc;
namespace Volo.Abp.Identity namespace Volo.Abp.Identity
{ {
[RemoteService] [RemoteService(Name = IdentityRemoteServiceConsts.RemoteServiceName)]
[Area("identity")] [Area("identity")]
[ControllerName("Role")] [ControllerName("Role")]
[Route("api/identity/roles")] [Route("api/identity/roles")]

2
modules/identity/src/Volo.Abp.Identity.HttpApi/Volo/Abp/Identity/IdentityUserController.cs

@ -6,7 +6,7 @@ using Volo.Abp.AspNetCore.Mvc;
namespace Volo.Abp.Identity namespace Volo.Abp.Identity
{ {
[RemoteService] [RemoteService(Name = IdentityRemoteServiceConsts.RemoteServiceName)]
[Area("identity")] [Area("identity")]
[ControllerName("User")] [ControllerName("User")]
[Route("api/identity/users")] [Route("api/identity/users")]

2
modules/identity/src/Volo.Abp.Identity.HttpApi/Volo/Abp/Identity/IdentityUserLookupController.cs

@ -6,7 +6,7 @@ using Volo.Abp.Users;
namespace Volo.Abp.Identity namespace Volo.Abp.Identity
{ {
[RemoteService] [RemoteService(Name = IdentityRemoteServiceConsts.RemoteServiceName)]
[Area("identity")] [Area("identity")]
[ControllerName("UserLookup")] [ControllerName("UserLookup")]
[Route("api/identity/users/lookup")] [Route("api/identity/users/lookup")]

2
modules/identity/src/Volo.Abp.Identity.HttpApi/Volo/Abp/Identity/ProfileController.cs

@ -4,7 +4,7 @@ using Volo.Abp.AspNetCore.Mvc;
namespace Volo.Abp.Identity namespace Volo.Abp.Identity
{ {
[RemoteService] [RemoteService(Name = IdentityRemoteServiceConsts.RemoteServiceName)]
[Area("identity")] [Area("identity")]
[ControllerName("Profile")] [ControllerName("Profile")]
[Route("/api/identity/my-profile")] [Route("/api/identity/my-profile")]

Loading…
Cancel
Save