IdentityServer4Demo icon indicating copy to clipboard operation
IdentityServer4Demo copied to clipboard

Incorrect port

Open sfortner opened this issue 4 years ago • 0 comments

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.

sfortner avatar Jan 29 '21 04:01 sfortner