Browse Source

Merge pull request #14010 from abpframework/gterdem/migration-guide-update

[DOCS] Openiddict migration guide need some additional steps
pull/14013/head
Galip Tolga Erdem 4 years ago
committed by GitHub
parent
commit
c066ea69c6
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 31
      docs/en/Migration-Guides/OpenIddict-Step-by-Step.md

31
docs/en/Migration-Guides/OpenIddict-Step-by-Step.md

@ -7,6 +7,11 @@ We are not removing Identity Server packages and we will continue to release new
On the other hand, Identity Server ends support for the open-source Identity Server at the end of 2022. The Identity Server team has decided to move to Duende IDS and ABP will not be migrated to the commercial Duende IDS. You can see the Duende Identity Server announcement from [this link](https://blog.duendesoftware.com/posts/20220111_fair_trade). On the other hand, Identity Server ends support for the open-source Identity Server at the end of 2022. The Identity Server team has decided to move to Duende IDS and ABP will not be migrated to the commercial Duende IDS. You can see the Duende Identity Server announcement from [this link](https://blog.duendesoftware.com/posts/20220111_fair_trade).
## Commercial Template
If you are using a commercial template, please check [Migrating from IdentityServer to OpenIddict for the Commercial Templates](https://docs.abp.io/en/commercial/6.0/migration-guides/openIddict-step-by-step) guide.
If you are using the microservice template, please check [Migrating the Microservice Template from IdentityServer to OpenIddict](https://docs.abp.io/en/commercial/6.0/migration-guides/openIddict-microservice) guide.
## OpenIddict Migration Steps ## OpenIddict Migration Steps
Use the `abp update` command to update your existing application. See [Upgrading docs](../Upgrading.md) for more info. Apply required migrations by following the [Migration Guides](Index.md) based on your application version. Use the `abp update` command to update your existing application. See [Upgrading docs](../Upgrading.md) for more info. Apply required migrations by following the [Migration Guides](Index.md) based on your application version.
@ -73,7 +78,7 @@ Use the `abp update` command to update your existing application. See [Upgrading
#### OpenIddictDataSeedContributor #### OpenIddictDataSeedContributor
- Create a folder named *OpenIddict* under the Domain project and copy the [OpenIddictDataSeedContributor.cs](https://github.com/abpframework/abp-samples/blob/master/Ids2OpenId/src/Ids2OpenId.Domain/OpenIddict/OpenIddictDataSeedContributor.cs) under this folder. Rename all the `Ids2OpenId` with your project name. - Create a folder named *OpenIddict* under the Domain project and copy the [OpenIddictDataSeedContributor.cs](https://github.com/abpframework/abp-samples/blob/master/Ids2OpenId/src/Ids2OpenId.Domain/OpenIddict/OpenIddictDataSeedContributor.cs) under this folder. **Rename** all the `Ids2OpenId` with your project name.
- Delete *IdentityServer* folder that contains `IdentityServerDataSeedContributor.cs` which is no longer needed. - Delete *IdentityServer* folder that contains `IdentityServerDataSeedContributor.cs` which is no longer needed.
You can also create a project with the same name and copy the `OpenIddict` folder of the new project into your project. You can also create a project with the same name and copy the `OpenIddict` folder of the new project into your project.
@ -213,6 +218,30 @@ for creating the host builder.
Replace **MyApplication** with your application name. Replace **MyApplication** with your application name.
### Test Project
- In **MyApplicationTestBaseModule.cs** **remove** the IdentityServer related using and PreConfigurations:
```csharp
using Volo.Abp.IdentityServer;
```
and
```csharp
PreConfigure<AbpIdentityServerBuilderOptions>(options =>
{
options.AddDeveloperSigningCredential = false;
});
PreConfigure<IIdentityServerBuilder>(identityServerBuilder =>
{
identityServerBuilder.AddDeveloperSigningCredential(false, System.Guid.NewGuid().ToString());
});
```
from `PreConfigureServices`.
### UI Layer ### UI Layer
- [Angular UI Migration](OpenIddict-Angular.md) - [Angular UI Migration](OpenIddict-Angular.md)

Loading…
Cancel
Save