docs/en/release-info/migration-guides/pro/microservice-4-x-to-5-2.md
//[doc-seo]
{
"Description": "Upgrade your Microservice template from 4.x to 5.2 with this comprehensive guide, covering breaking changes and enhancements like Docker support."
}
This document is a guide for upgrading Microservice template version 4.4 to version 5.2. Please read them all since there are some important breaking changes.
It is strongly suggested to follow General Startup Template Changes Guide and generate an up-to-date microservice template for comparison. Compare your code-base for each application, gateways, microservices, and the shared projects that you are using.
ABP 5.0 runs on .NET 6.0. So, please upgrade your microservice template solution to .NET 6.0 if you want to update your solution to ABP 5.x. You can see Microsoft's migration guide.
AuthServer is now hosting Account Http.Api module. Since account-related management and configurations are done in AuthServer, hosting responsibility is now moved to AuthServer with swagger support.
Volo.Abp.Account.Pro.Public.HttpApi layer. Add this reference to your AuthServer.csproj and the AbpAccountPublicHttpApiModule dependency to the AuthServerModule.Renamed oAuthConfig scope AuthServer to AccountService in environment.ts.
Added Account remote service to apis in environment.ts:
AbpAccountPublic: {
url: oAuthConfig.issuer,
rootNamespace: 'AbpAccountPublic',
},
SwaggerWithAuthConfigurationHelper class to SwaggerConfigurationHelper.app.MapWhen()) used for dynamic proxying.AuthServer to AccountService in Web gateway.IdentityServerDataSeeder located under IdentityService.HttpApi.Host and DbMigrator to reflect the resource and the scope better.IdentityServerDataSeeder located under IdentityService.HttpApi.Host and DbMigrator appsettings.json is updated. Configuration now contains Clients and Resources instead of just Clients now.CreateSwaggerClientsAsync method is renamed to CreateWebGatewaySwaggerClientsAsync. Only the WebGateway client is used for swagger authentication now.Shared.Hosting.Gateways and added functionality to SwaggerConfigurationHelper with the name ConfigureWithAuth.