The problem was that the 'key' part of appsettings.json needs to be inside the 'IdentityServer' part.
appsettings.json