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?
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
ABP 8.2.1
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
i will check it
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
-
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.
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
-
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
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
Can we book a session to share screen?
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
sure,
my email is shiwei.liang@volosoft.com
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)



