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
Duende IdentityServer with ASP.NET Core Identity duende-is-aspid [C#] Web/Duende/IdentityServer
64
+
Duende IdentityServer with Entity Framework Stores duende-is-ef [C#] Web/Duende/IdentityServer
65
+
Duende IdentityServer with In-Memory Stores and Test Users duende-is-inmem [C#] Web/Duende/IdentityServer
66
+
```
67
+
68
+
## Template Descriptions
69
+
70
+
In this section, we'll discuss what each IdentityServer template offers and why you would choose to start with it. While there are similarities across templates, there are nuances that can make for better starting points depending on your particular use case.
71
+
72
+
We'll start with the simplest templates and then move to the most feature-rich ones. Many of these templates build on each other's work, so moving from one to another is straightforward.
73
+
74
+
:::note
75
+
All templates currently target .NET 8.0, but you can alter the target framework after creating the project to target higher framework versions.
76
+
:::
77
+
78
+
All templates are provided as a starting point for your customization. Using the templates, you assume development responsibility for the choices, alterations, and inevitable deployment of your IdentityServer instance.
79
+
80
+
### Duende IdentityServer Empty
81
+
82
+
You want to run the following command to start using the **Duende IdentityServer Empty** template.
83
+
84
+
```bash
85
+
dotnet new duende-is-empty
86
+
```
87
+
88
+
Once created, this template has three essential files: `Config`, `HostingExtensions`, and `Program`.
89
+
90
+
You can modify the `Config` file to add clients, scopes, and claims, as all configurations are from in-memory objects.
This template doesn't include user interface elements, so it doesn't support OpenID Connect unless you add those UI elements. You can do so by running the UI-only template of `duende-is-ui`.
112
+
113
+
```bash
114
+
dotnet new duende-is-ui --project <name of web app>
115
+
```
116
+
117
+
The executed command will add Razor Pages to your web project. You will need to add Razor Pages to your `HostingExtensions` file.
### Duende IdentityServer with In-Memory Stores and Test Users
159
+
160
+
The `duende-is-inmem` template is similar to the `duende-is-empty` and `duende-is-ui` templates combined into a single project template.
161
+
162
+
```bash
163
+
dotnet new duende-is-inmem
164
+
```
165
+
166
+
This template differs from others in that we have defined some starting clients, scopes, and claims for common development scenarios and a speedier development experience.
This template is a great starting point for proof of concepts and a learning tool for developers experiencing OAuth 2.0 and OpenID Connect in the .NET space for the first time.
221
+
222
+
### Duende IdentityServer with Entity Framework Stores
223
+
224
+
For developers looking to quickly go to a production-like environment, starting with the `duende-is-ef` template is a great starting point.
225
+
226
+
```bash
227
+
dotnet new duende-is-ef
228
+
```
229
+
230
+
This template stores all operational and configuration data of the IdentityServer instance in your chosen data storage, utilizing EF Core's ability to target multiple database engines.
231
+
232
+
The template targets SQLite by default, but we have included scripts to easily swap out and regenerate migrations for your database.
233
+
234
+
[Read more about the Entity Framework Core setup here.](/identityserver/data/ef)
235
+
236
+
### Duende IdentityServer with ASP.NET Core Identity
237
+
238
+
The **Duende IdentityServer with ASP.NET Core Identity** template integrates with ASP.NET Identity to
239
+
provide you with an instance of Duende IdentityServer that has a user store powered by the Microsoft
240
+
library.
59
241
60
-
## Source Code
242
+
[Please read our ASP.NET Identity documentation](/identityserver/aspnet-identity/), to learn more about this integration.
61
243
62
-
You can find the Duende IdentityServer source code on [GitHub](https://github.com/duendesoftware/IdentityServer).
0 commit comments