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.

    image.png

    image.png

  • 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
    image.png

    image.png

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer
  • 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

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.3.0-preview. Updated on April 11, 2025, 10:10