Identity schema
AdminUI uses a custom ASP.NET Core Identity schema. This schema extends from the ASP.NET Core Identity Entity Framework defaults, which means any existing registration, password reset or login functionality will continue to work with the AdminUI user store.
Note: Existing users will need to be exported to use the AdminUI schema.
To migrate your ASP.NET Identity Core schema to then be able to run further migrations you can use the script found here: Migration script.
This schema is available on nuget using the IdentityExpress.Identity
package. An AdminUI OpenIddict integration example is also available to demonstrate a working OpenIddict installation using this nuget package and schema.
Use the following command to install using the nuget package manager console:
install-package IdentityExpress.Identity
To use the AdminUI IdentityExpress.Identity
schema, any existing ASP.NET Identity registrations need to be updated:
// Register Identity using IdentityExpress entities and stores
services.AddIdentity<IdentityExpressUser, IdentityExpressRole>()
.AddUserStore<IdentityExpressUserStore>()
.AddRoleStore<IdentityExpressRoleStore>()
.AddIdentityExpressUserClaimsPrincipalFactory();
// Register the DbContext for the IdentityExpress schema
services.AddDbContext<IdentityExpressDbContext>();
Any existing registrations for SignInManager
or use of IdentityUser
should also be updated.
Scopes and Applications claims
You need be able to use the claims binded to Scopes and Applications in AdminUI from your OpenIddict server. You can find the complete documentation here.