A set of technologies in .NET for building web applications and web services. Miscellaneous topics that do not fit into specific categories.
Hi @Young, Mark ,
Thanks for reaching out.
It’s great that you were able to use Fiddler to pinpoint the issue. From what you described, the 405 seems related to the URL that Entra ID was posting back to your client app, something IIS wasn’t expecting on that endpoint.
Since you’ve identified the mismatch, here are a few things you could try next:
- Double-check that the Redirect URI in Azure exactly matches what your IIS-hosted app expects, including the protocol (
https) and any trailing slashes. - Make sure the IIS endpoint is configured to accept the HTTP method (POST or GET) that Entra ID is sending. Sometimes adding a simple
ValidateRequest="false"or adjusting the handler mappings inweb.configcan help. - Keep using Fiddler or browser network tools to verify the response after each change. This will confirm whether the 405 is resolved.
The key insight is that the problem isn’t with the authentication logic itself, but with how IIS interprets the incoming request. Fixing the URL alignment and server configuration should get the flow working like it does locally.
Hope this helps! If my answer was helpful - kindly follow the instructions here so others with the same problem can benefit as well.