IdentityServer4Demo
IdentityServer4Demo copied to clipboard
Incorrect port
Thanks for all your work on the API boilerplate and the IdentityServer4 Demo - both are excellent. In your latest code updates, in WeatherApi\startup.cs:
services.AddAuthentication(IdentityServerAuthenticationDefaults.AuthenticationScheme) .AddIdentityServerAuthentication(options => { options.Authority = "https://localhost:44354"; options.ApiName = "app.api.weather"; });
in my case, should be:
services.AddAuthentication(IdentityServerAuthenticationDefaults.AuthenticationScheme) .AddIdentityServerAuthentication(options => { options.Authority = "https://localhost:44373"; options.ApiName = "app.api.weather"; });
It might help to comment the above hardcoded port that it needs to be changed to match the ssl port of the TokenServer's launchSettings.json "sslPort" setting. Even better, an appsettings.Development.json configuration entry could be helpful.