This walkthrough will run through setting up AdminUI manually in IIS.
The IdentityExpress AdminUI site integrates with an IdentityServer installation for authentication and authorization
AdminUI is deployed as an IIS Application that communicates with your IdentityServer application
You will also need an IdentityServer4 Installation and either a MySql or SqlServer Database set up. There is a sample IdentityServer available here that is already integrated with our IdentityExpress.Identity schema.
If you already have a working IdentityServer installation up and running then this walkthrough is for you.
This walkthrough will take you through the entire IIS configuration process, resulting in a working environment for IdentityExpress AdminUI, with the UI and backend API running on the same machine and targeting an existing IdentityServer. This will also include migrating your user store to the AdminUI Identity Schema.
Configure a Database
AdminUI currently only supports MySql, PostgreSQL and SqlServer. This also includes SqlExpress.
Any used databases must accept remote connections, also ensure that your firewall allows connections on any used ports.
Create IIS Websites
Initially you will want to create an IIS Website pointing at the folder we have provided in the emails.
Once created you need to configure the application for run no managed code. You can do this by going to Application Pools -> [Website Name] -> Basic Settings -> Change .NET CLR Version to No Managed Code.
This section will show you how to configure AdminUI. Please note that in IIS environments variables are nested with
Once you have a Website Setup, you will need to add some variables to the site in order to get it to run. The variables to be aware of are:
DbProviderThis sets the database type you are using. Supported types and their values are
IdentityConnectionStringThe connection string for your Identity database (users)
IdentityServerConnectionStringThe connection string for your IdentityServer database (clients, resources & grants).
AuthorityUrlUrl of the IdentityServer installation
UiUrlUrl of the AdminUI frontend (the idxui container)
falseif you want to ensure IdentityServer discovery endpoint uses TLS. Must be true for production
IdentityDatabaseToMigrateConnectionString(optional) The connection string of your existing ASP.NET Core Identity Entity Framework database that will be migrated to the database used in
IdentityConnectionString(this must not be equal to
For a full list of configuration settings, see Configuring AdminUI.
Whether you are installing AdminUI for the first time or upgrading to the latest version of AdminUI, you will need to run some form of migrations to ensure your databases are inline with AdminUI, if you want AdminUI to handle all migrations you can navigate to the folder where your AdminUI site is and run the following command.
dotnet IdentityExpress.Manager.UI.dll -migrate all
It will generate the databases for you using the connection strings configured in your AdminUI appsettings.json.
If you are planning on managing some of the database migrations yourself, or want more options when setting up your databases, then there are more fine tune migrations you can do, for more info see our full migration docs here
If you're having issues, we recommend you first enable logging for the API site.