IdentityServer4 icon indicating copy to clipboard operation
IdentityServer4 copied to clipboard

Open ID Configuration JSON returns a mix of public URL and localhost

Open jonasarcangel opened this issue 6 years ago • 2 comments

Open ID Configuration JSON returned is a mix of my public URL and localhost. It shouldn't have localhost.

http://167.172.118.170/.well-known/openid-configuration

Identity Server configuration:

        services.AddIdentityServer(options =>
        {
            options.IssuerUri = "https://167.172.118.170/";

        })
            .AddApiAuthorization<ApplicationUser,
            ApplicationIdentityDbContext>(); 

Repository: https://github.com/jonasarcangel/BlazorLoginNetworkErrorIssue/blob/master/src/MyProject.Data.Identity/Extensions.cs

Host is configured as follows in Startup.cs:

        app.Use(async (ctx, next) =>
        {
            ctx.Request.Scheme = "http";
            ctx.Request.Host = new HostString("167.172.118.170");
            await next();
        });

Repository: https://github.com/jonasarcangel/BlazorLoginNetworkErrorIssue/blob/master/src/MyProject.Web.Server/Startup.cs

Authentication.razor does not provide any option on how to provide server URL.

Repository: https://github.com/jonasarcangel/BlazorLoginNetworkErrorIssue/blob/master/src/MyProject.Web.Client.Shell/Pages/Authentication.razor

jonasarcangel avatar Oct 12 '20 12:10 jonasarcangel

Sorry - I don't follow. Is this still an issue, and do you have more information?

leastprivilege avatar Nov 16 '20 10:11 leastprivilege

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

github-actions[bot] avatar Dec 10 '20 22:12 github-actions[bot]