Installation
From an empty Windows server to a ready-to-use portal – step by step.
Overview
Installation consists of six steps:
- Copy the application into a web folder and set it up in IIS.
- Open the setup wizard and connect the database.
- Sign in with the local emergency account and change its password.
- Create the first Active Directory connection.
- Set up the first administrator.
- Install the licence.
Check the system requirements first – especially the Hosting Bundle, the database account and the HTTPS certificate.
Setting up IIS
Paths and names are examples.
- Create a web folder, e.g.
D:\wwwroot\IdentityFlow, and copy the complete content of the delivery package into it – including theModulessubfolder. Do not change the suppliedweb.config. - Create an application pool, e.g.
IdentityFlow: .NET CLR version "No Managed Code", pipeline mode Integrated. In the advanced settings, set "Load User Profile" to True – otherwise every recycle signs all users out. - Create a website and explicitly assign the application pool from step 2. The physical path is the web folder.
- Set permissions: create a subfolder
App_Datain the web folder and give the pool identityIIS AppPool\IdentityFlowthe Modify right. IdentityFlow stores the encrypted database connection and the emergency account there. - Add an HTTPS binding on port 443 with a matching certificate and open port 443 in the firewall. An additional HTTP binding redirects to HTTPS automatically.
- Start the website and open
https://<hostname>/. On a new installation, the setup wizard appears automatically.
Setup wizard (database)
As long as no database is configured, IdentityFlow redirects every request to /Setup. The wizard asks for:
- Database type – SQL Server, MySQL or PostgreSQL
- Server and optionally port (empty = default port)
- Database – name of the empty target database
- User name and password of the database account
- Trust certificate – if the database server encrypts the connection without a publicly trusted certificate
After submitting, IdentityFlow tests the connection and automatically creates the complete database schema and base data. The sign-in page appears afterwards.
First sign-in
Right after setup, no Active Directory user has a role yet. Sign in with the local emergency account:
- User name:
Admin - Password:
Admin
IdentityFlow then takes you to the account settings automatically. The application can only be used once you have changed the default password.
The emergency account is not stored in the database but in a local file, so it also works when the database is unreachable. Every sign-in with it requires a reason and is logged.
AD connection and first administrator
Under Administration > Settings > AD connection, create the first connection: domain (DNS name), service account with password and – recommended – LDAPS. Check the details with Test connection and save.
Nobody becomes an administrator automatically. To set up the first administrator:
- The future administrator signs in with their AD account and submits a request for the Administrator role under Role change requests.
- The local emergency account signs in and opens the role change requests. As long as nobody is registered as a role approver yet, it can approve this first request as an exception.
- After approval, the person has administrator rights from their next sign-in.
- Then register at least one person as a role approver under Administration > Role management. From then on, every role change follows the four-eyes principle.
Installing the licence
Without a licence, IdentityFlow runs in the restricted Free scope. Install the licence file (.lic) in the licence window (Administration > Licensing). IdentityFlow verifies the file's signature and hardware binding.
Create licence request generates an encrypted request file. If an SMTP server is configured, you can send the request directly by e-mail to license@identityflow.de.
As long as the emergency account still uses the default password, licences can neither be installed nor requested.
Updating to a new version
- Back up the database.
- Stop the website and application pool in IIS.
- Replace the content of the web folder with the new delivery package. The
App_Datafolder must be kept – it contains the database connection and the emergency account. A reliable way:
robocopy .\publish D:\wwwroot\IdentityFlow /MIR /XD "D:\wwwroot\IdentityFlow\App_Data"- Start the website and application pool again.
IdentityFlow applies new database changes automatically on start.
Backups
- The database holds all business data – users, requests, the audit log and settings. Back it up regularly with the tools of your database server.
- The file
App_Data\dbconnection.jsonis encrypted with a key bound to the Windows server and cannot be decrypted on another server. When moving to a new server, simply run the setup wizard there again with the same connection details – the data in the database is not affected.
Common errors on first start
- HTTP error 500.19 (configuration error in web.config): the IIS module is missing. Install or repair the Hosting Bundle, then run
iisreset. - HTTP error 500.31: framework-dependent package without the ASP.NET Core 10.0 runtime. Install Hosting Bundle 10.0.
- HTTP error 500.30: the application crashed on start. Temporarily set
stdoutLogEnabled="true"inweb.config, create alogsfolder with write access and read the message inlogs\stdout_*.log. - Setup fails / access denied on App_Data: the pool identity is missing the "Modify" right on
App_Data. - Sign-in keeps returning to the sign-in page: accessed over HTTP without an HTTPS binding.
- Users are signed out at irregular intervals: "Load User Profile" is False in the application pool.