User530018855 posted
I have been playing with this one for a while, and cannot seem to get Microsoft account login to work for my site.
I've followed instructions given in several walk throughs but always get the response from the login of:
https://login.live.com/err.srf?lc=1033#error=invalid_request&error_description=The%20provided%20value%20for%20the%20input%20parameter%20'redirect_uri'%20is%20not%20valid.%20The%20expected%20value%20is%20'https://login.live.com/oauth20_desktop.srf'%20or%20a%20URL%20which%20matches%20the%20redirect%20URI%20registered%20for%20this%20client%20application.&state=KxrxBUN3kRWuEuDy9aTg6GJrCkMstj4uGpHAcHxzafB6NilXsbtXvSCNFry8ExkcBrwMkv4_H5JMlUU_TnSNZX2nn1Yy4P_z6wUP4WGazfe5l7JL6Y0xSNZ9mw5aMNJ67ZgtUWUshf70daQ0hxZdNzrQlwZX3TfId6VBW9qV_0coiitd7VomcvdGYsvKkjjRXY0aaQ69Vbw8zdGY40QrvU1WtvIKZrVt0pKWneCKTQM
I have set up my "app" on the live developer site thus:
Application name: raisafelt_website
Default language:
English (United States)
Application logo:
Terms of service URL:
http://www.raisafelt.com/About
Privacy URL:
http://www.raisafelt.com/About
API Settings
Mobile or desktop client app:
No
Restrict JWT issuing:
Yes
Enhanced redirection security:
Enabled
Root domain:
www.raisafelt.com
Redirect URLs:
http://www.raisafelt.com/signin-microsoft
My local hosts file has the loopback entry for
www.raisafelt.com
I've entered new bindings in my ISS Express config file for the fully qualified host name.
I've reserved the URL using netsh, which is why my IIS Express does allow me to use the FQHN without a problem.
The latest walkthrough I've been through is here:
http://www.benday.com/2014/02/25/walkthrough-asp-net-mvc-identity-with-microsoft-account-authentication/
Is there really something wrong with ASP.NET identity, or do I still have a setup error? it would appear that the redirect URL is coming directly from the Authorization code, and that it should just be something else, but I'm not that versed on how
it should work.
Just for jokes, here are my owin versions. They are supposed to be the latest, I expect:
<dependentAssembly>
<assemblyIdentity name="Microsoft.Owin" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.Owin.Security.OAuth" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.Owin.Security.Cookies" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.Owin.Security" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
</dependentAssembly>
-thanks
-e
</div>