Open Closed

ABP Framework upgrade 8.2.1 replaced identity service doesn't generate proxy #7623


User avatar
0
DominaTang created

Our project extend some app service in Identity service:

[Dependency(ReplaceServices = true)]
[ExposeServices(typeof(IIdentityUserAppService))]
public class AbcIdentityUserAppService : IdentityUserAppService
{
 //Some override methods
//Some new methods
}

When in ABP 7, when generate identity-service proxy, in angular side, there are two sub folder generated, one called abp, one called volo. After upgrade to ABP 8, the proxy for identity-service, only one folder volo generated, the new methods in class AbcIdentityUserAppService is not available for client side to call.


9 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    After upgrade to ABP 8

    Which version?

  • User Avatar
    0
    DominaTang created

    ABP 8.2.1

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    i will check it

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    I could not reproduce the problem.

  • User Avatar
    0
    DominaTang created

    I checked the Swagger UI for identity service. There is no new method. Plus, we have a separate app service: public class CustomIdentityAppService : ApplicationService, ICustomIdentityAppService { }

    So in Identity Service, there are two controllers, the second controller doesn't show in swagger at all. Even I exclude first controller from project, the User APIs has no new method exposed. How could you make swagger can access the new method? If swagger APIs are all from ABP's build-in ones, when generate proxy, the new methods wouldn't be available.

    [Dependency(ReplaceServices = true)] [ExposeServices(typeof(IdentityUserController))] public class AbcIdentityUserController : IdentityUserController { }

    [Area("identity")] [RemoteService(true, Name = "AbpIdentity")] [Route("api/identity/custom")] [Authorize] public class BdoCustomIdentityUserController : AbpControllerBase, ICustomIdentityAppService { }

    In Saas Service, we have additional controllers, those controllers APIs was shown on swagger though.

  • User Avatar
    0
    DominaTang created

    When I downgrade proxy generator from 8.2.1 to 7.4.5, another difference I found: IdentityUserDto doesn't exist in proxy models in 8.2.1 but exists in 7.4.5

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    https://abp.io/support/questions/7623/ABP-Framework-upgrade-821-replaced-identity-service-doesn%27t-generate-proxy#answer-3a1438d2-184a-0763-1f04-ab7c8c8b4936

    How do i reproduce the problem, could you share the full steps

  • User Avatar
    0
    DominaTang created

    Can we book a session to share screen?

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    sure,

    my email is shiwei.liang@volosoft.com

Made with ❤️ on ABP v9.0.0-preview Updated on September 18, 2024, 12:46