DuendeSoftware / Support

Support for Duende Software products
21 stars 0 forks source link

Users need to introduce their Windows credentials when accesing the software from a different domain #1447

Open RaulRG opened 5 days ago

RaulRG commented 5 days ago

Which version of Duende IdentityServer are you using? We are using the version 7.0.6

Which version of .NET are you using? We are using the version 8.0.204

Describe the bug (question) We have a customer where the server is installed in Germany and some users connect to this server from Romania using a VPN connection. The users are in a different Windows domain and have to introduce the Window's credentials every time before accesing to the server. We already have a similar question but with other root cause. In our other question the issue is caused because we don't use HTTPS in our test system. #1435

This is not the case in the current issue. The customer does use HTTPS, but the result is exactly the same. They are not using Windows authentication, the users would like to use username / password, but the browser keeps asking for their Window's credentials even before showing the IdentityServer's form.

Any help about how to solve this issue would be appreciated

StuFrankish commented 5 days ago

I don't think the issue you're having here falls in scope of Identity Server, so I'm not sure how much help the guys will be able to offer in that regard.

However, my past experiences with hosting on IIS (I'm assuming that's how you're hosting Identity Server in this instance) makes me think you have Windows Authentication enabled for the site in IIS.

Having it enabled means browsers will attempt to authenticate using the user's Windows credentials, even though it's not used in the application. For Identity Server, you can disable Windows Authentication and enable Anonymous Authentication.

That should let you get to Identity Server and carry on as normal.

RaulRG commented 5 days ago

Thank you for your answer!

No, we are using Kestrel, We were using http.sys when we had the "old" open source IdentityServer, but moved to Kestrel when we upgraded to Duende's and from .NET Framework to .NET 8. We had some issues like the one we mentioned in #1435, but generally it is working if you use HTTPS. The current problem is a support case from a customer that complains about their users having to introduce their Windows credentials (similar to the case where you don't use HTTPS)

Update: after sending my message I asked the support department for additional information. The customer is using the http.sys based version. We are not using IIS, so I don't know how this could affect the authorization process.

RolandGuijt commented 1 day ago

Can you please check if your customer doesn't have Windows authentication enabled as described here?