Windows Authentication popup always shows when accessing my site with https #116
Replies: 2 comments 5 replies
-
The components used for this are Microsoft's. I recommend to post an issue on their support systems. I'm sorry but unfortunately we can't support them here. An alternative would be to use our consultancy services. For more details please contact us. |
Beta Was this translation helpful? Give feedback.
-
Hello Roland, thank you for your answer. What do you mean by these are Microsoft's components? When we configure Windows authentication to be used in IdentityServer, aren't we using your product? I thought IdentityServer was taking care of integrating with Windows. Could we someday use a Linux based server with IdentityServer an use Windows Authentication? Sorry for all these questions, but we used IdentityServer in the first place to solve the authentication "task" and not implement something ourselves. |
Beta Was this translation helpful? Give feedback.
-
IdentityServer version
7.1.0
.NET version
8.0.404
Description
Some time ago we opened this: DuendeArchive/Support#1435
At that time, it was solved by adding the domains as local intranet at Windows Internet Options. The thing is that by that time we had our identity MVC application started in a separate host (Kestrel) than the one we used for our main application. We have recently changed that so it starts in the same host and port that our application does (under the path /identity) and we got again the same issue and it seems that solution doesn't work anymore and get again the Windows Authentication popup.
These is how we intialize our identity:
And the schemes we use for authentication:
Reproduction steps
Our main LoginDefault endpoint in the AccountController has the [Authorize(AuthenticationSchemes = NegotiateDefaults.AuthenticationScheme)]. If we access it with https it is automatically called using HTTP2, which does not support Negotiate and the popup shows.
If we close the popup, even without writing any credentials, the browser automatically does again the call downgrading the protocol to HTTP1, getting to our logging page.
It only happens the first time you enter as the next times seem to be always through HTTP1.
Expected behavior
We would like to know if there's a way to not show the popup without having to force HTTP1 protocol when starting our kestrel host.
Thank you!
Logs
No response
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions