Closed cosmoKenney closed 4 years ago
@leastprivilege since this is related to #1379 can you tell me if there is a work around for IIS that would do the same thing the OP on that thread did in Apache?
I personally never ever had this problem.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Questions are community supported only and the authors/maintainers may or may not have time to reply. If you or your company would like commercial support, please see here for more information.
@leastprivilege I asked in my original post above: Is there a way for me to clean the requests before they make it to IdentityServer middleware? Can you at least answer that? Just because you haven't never ever had this problem doesn't mean it doesn't exist. It is clearly something that comes up. Granted it is not frequent. But, in my industry many people run ancient browsers and in my opinion IdentityServer should be able to handle their quirks. And when IdentityServer fails to do so, I don't feel like it is acceptable for the authors to push the problem back to the consumer.
Is there a way for me to clean the requests before they make it to IdentityServer middleware?
Write middleware.
how would i make sure it runs before identity server picks up the request? and is it even possible to modify the query before passing it along?
@brockallen @leastprivilege This is clearly a bug. How can I convert this issue to a bug report? Or should I just create a new issue as a bug? IdentityServer should handle the encoding. Period.
@cosmoKenney have a look at https://docs.microsoft.com/en-us/aspnet/core/fundamentals/middleware/?view=aspnetcore-3.1 they explain how the pipeline works and yes you can guarantee your middleware runs first
@TheBeardedLlama thanks for the non-dismissive response.
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.
Question
I have a very similar problem to #1379 Except in my case the response type is not double-encoded. What I see in the identity server log is:
_Response type not supported: idtoken+token
My belief is that this is browser version specific. But how can I handle it? Is there a way for me to clean the requests before they make it to IdentityServer middleware?
In #1379 they did some apache config changes to make it work. But I'm hosting both identity server and the client in IIS.
Minimal working example
I'm using the webforms client code almost verbatim from the IdentityServer 3 quickstart samples.
Relevant parts of the log file