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)
-
0
After upgrade to ABP 8
Which version?
-
0
ABP 8.2.1
-
0
i will check it
-
0
-
0
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.
-
0
-
0
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
-
0
Can we book a session to share screen?
-
0
sure,
my email is shiwei.liang@volosoft.com