You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: website/docs/idserver/migrations/duende.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Migrating from Duende to SimpleIdServer
2
2
3
-
If you're currently using Duende IdentityServer version 7, migrating to SimpleIdServer is a smooth and straightforward process.
3
+
If you're currently using [Duende](http://duendesoftware.com/) IdentityServer version 7, migrating to SimpleIdServer is a smooth and straightforward process.
4
4
With the help of our migration tool, you can quickly transition your identity server without hassle.
If you're currently using version 6 of the [OpenIddict](http://documentation.openiddict.com/) library and are considering switching to SimpleIdServer, migration is now possible thanks to a dedicated migration package.
4
+
5
+
## How to Migrate
6
+
7
+
To begin, install the NuGet package `SimpleIdServer.IdServer.Migrations.Openiddict`. This package provides everything needed to migrate your OpenIddict data to SimpleIdServer.
Once the package is installed, update your `Program.cs` file to configure the migration services.
13
+
14
+
There are two essential methods to call:
15
+
16
+
***EnableMigration()** – Registers the services required to perform a migration.
17
+
18
+
***AddOpeniddictMigration(...)** – Registers the dependencies needed to migrate from OpenIddict to SimpleIdServer. This method takes a lambda expression to configure the database connection string used to access your existing OpenIddict database.
19
+
20
+
Here’s an example of how your Program.cs file might look with migration enabled:
21
+
22
+
```csharp title="Program.cs"
23
+
builder.AddSidIdentityServer()
24
+
.EnableMigration()
25
+
.AddOpeniddictMigration(a=>
26
+
{
27
+
a.UseSqlServer(""); // Add your connection string here
28
+
});
29
+
```
30
+
31
+
## Running the migration
32
+
33
+
With the configuration in place, you're ready to run the migration and transfer your OpenIddict data into SimpleIdServer.
34
+
Make sure to replace the placeholder connection string with the one that connects to your current OpenIddict database.
35
+
36
+
For additional guidance on how to execute the migration process, you can refer to the [Duende migration](./duende.md) documentation, which provides helpful context for understanding the overall flow.
0 commit comments