Skip to content

Incorrect port #2

@sfortner

Description

@sfortner

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions