Windows Live OAuth ID with C # .net Development Environment

I'm just trying to create one sample application with which I can log in to my site using the Windows Live Id OAuth protocol.

My application (downloaded one sample available on the network) is working fine. It opens a popup where I can provide my credentials for the Live Id window, and then redirect back the redirect URL specified in my account.

I noticed that when I provide a direct URL (say ..... myappp.sample.com), it redirects fine. But when I try to install (http: // localhost: 52254 / WebSite9 / default.aspx), this is not supported in my account. (error → You must enter a valid domain that starts with http: // or https: // - query strings are not allowed. Length is limited to 248 characters.)

My question is, how can I use to test all this in my local environment. Because it does not redirect back to the localhost url. Redirect to Live URL only.

Is there any way I can test Live Id OAuth with the development environment?

+6
source share
1 answer
East cake. Put something like:

http://www.anydomain.com/ on the live app page.

Then add this domain to the host file of your computer (or the dns intranet or something else), pointing to 127.0.0.1.

Redirection is just a 302 redirection that occurs in the browser.

+6
source

Source: https://habr.com/ru/post/900499/


All Articles