Enable identityserver is the only change in appsettings.json, the start project version is 5.04. the authority should be localhost:22742 if (bool.Parse(configuration["IdentityServer:IsEnabled"])) { authenticationBuilder.AddIdentityServerAuthentication("IdentityBearer", options => { options.Authority = configuration["App:ServerRootAddress"]; options.RequireHttpsMetadata = false; }); }