I am setting up Microsoft authentication for a site built off the MVC5 default template.

I've enabled MS authentication in Startup.Auth.cs and gotten tokens from MS, however it only seems to work when I have Enhanced redirection security off (which sounds like a good thing to enable).

enter image description here

I think i must have the redirect URL wrong as I get the following with Enhanced redirection security on. What is the correct redirect URL to use based on the default MVC5 template?

i have tried the following:

enter image description here

有帮助吗?

解决方案

By default, the Katana MW uses your app's base path + "/signin-microsoft" as the callback URL. Try plugging that into the Live admin tool and enabling the enhanced redirection.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top