MVC OAUTH VS2012 template, where to enter the redirect_uri?
asp.net-mvc, oauth
Solution
Lukos' answer is good, but in ASP.NET MVC 5 I believe the default URL redirect has changed.
With MVC 5 (with the help of fiddler) I see we need to use: (Of course substitute mysite with your site name)
Root domain:
www.mysite.com
Redirect URLs:
http://www.mysite.com/signin-microsoft
Note the required "/signin-microsoft" at the end of the Redirect URL.
If this still does not work for you use fiddler and look at the POST coming from /Account/Login and in the Response Headers find the redirect_uri value.
Problem
MVC OAUTH VS2012 template VB.Net I'm adding OAuth so that my users can login via Facebook etc. I have entered my clientSecret and ClientID in the RegisterAuth function. When I run the code I get:- The provided value for the input parameter 'redirect_uri' is not valid. The expected value is 'https://login.live.com/oauth20_desktop.srf' or a URL which matches the redirect URI registered for this client application." I have searched everywhere to find where I enter the URL. I think it is defaulting "/Account/ExternalLoginCallback" but that would be of no use to the external Authorisor. I think it's going to be obvious but I just don't see it ! thanks John