Closed DAR-2023 closed 3 months ago
Please try to use a host name (could be just "localhost" in this case) instead of an IP address to prevent issues with cookies. Additionally, maybe needless to say but just to be sure: using http instead of https is not secure, it will expose the secrets that are exchanged. I would even use https in test scenarios to prevent issues with it when going to production.
@DAR-2023 Did this solve the issue for you? If so I'd like to close the issue.
Closing this but feel free to reopen and add something if needed.
Which version of Duende IdentityServer are you using? Duende.IdentityServer 7.0.4
Which version of .NET are you using? .NET 8.0.6
Describe the bug Go through the quickstart 2 steps, then host the IdentityServer and WebClient projects to the server, try to call the WebClient then redirects to the IdentityServer login page, add username/password with no action happening, and return to the login page again, the Log indicates that AuthenticationScheme: idsrv was not authenticated.
A clear and concise description of what the bug is. [Debug] Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationHandler AuthenticationScheme: idsrv was not authenticated.
The client config is: new Client { ClientId = "web", ClientSecrets = [new Secret("secret".Sha256())],
where 192.168.1.101 is the server IP
WebClient config builder.Services.AddAuthentication(options => { options.DefaultScheme = "Cookies"; options.DefaultChallengeScheme = "oidc"; }) .AddCookie("Cookies") .AddOpenIdConnect("oidc", options => { options.Authority = "http://192.168.1.101:5000";