---
title: Integrating with Quickstarts
---

After using the IdentityServer Quickstarts to evaluate the framework, it is then possible to integrate AdminUI for production use.

**Note:** Quickstarts built using the ASP.NET Core Identity Visual Studio templates are not recommended for production, due to their fragility and abuse of anti-patterns.

## Update Packages

When using the code from the [samples repository](https://github.com/RockSolidKnowledge/Samples.IdentityServer4.AdminUiIntegration), ensure all packages are up-to-date (excluding pre-releases).

## Required Packages

AdminUI uses a custom ASP.NET Core Identity schema. This schema extends from the [ASP.NET Core Identity Entity Framework](https://github.com/dotnet/aspnetcore/blob/master/src/Identity/EntityFrameworkCore/src/IdentityDbContext.cs) defaults, which means any existing registration, password reset or login functionality will continue to work with the AdminUI user store.

This schema is [available on nuget](https://www.nuget.org/packages/IdentityExpress.Identity/) using the `IdentityExpress.Identity` package.

Use the following command to install using the nuget package manager console:

```language-bash
install-package IdentityExpress.Identity
```

## Registration & Usage Changes

Some base entities with AdminUI/IdentityServer specifics need to be updated:

1. Delete `Models\ApplicationUser.cs`
2. Replace all usages of `ApplicationUser` with `IdentityExpressUser`
3. Replace all usages of `IdentityRole` with `IdentityExpressRole`
4. Delete `Data\ApplicationDbContext.cs`
5. Replace `.AddEntityFrameworkStores<IdentityExpressDbContext>()` with `.AddUserStore<IdentityExpressUserStore>().AddRoleStore<IdentityExpressRoleStore>()`
6. Add `.AddIdentityExpressUserClaimsPrincipalFactory()` to ensure user data is correctly transformed into claims
7. Delete any ASP.NET Core Identity migrations, AdminUI must be in charge of the user store migrations

The ASP.NET Core DI registrations should now look similar to this:

```language-csharp
services.AddDbContext<IdentityExpressDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("DefaultConnection")));
services.AddIdentity<IdentityExpressUser, IdentityExpressRole>()
    .AddUserStore<IdentityExpressUserStore>()
    .AddRoleStore<IdentityExpressRoleStore>()
    .AddIdentityExpressUserClaimsPrincipalFactory()
    .AddDefaultTokenProviders();
```