Using localhost in Microsoft applications as a redirect domain

I am trying to create an application with SkyDrive Api using ASP.Net. I started using this tutorial http://cgeers.com/2012/04/29/getting-started-with-the-live-sdk-authorization/ I tried to create an application in the Microsoft Live Connect Developer Center and because my application is a web application I need to install Redirect Domain The problem is that I'm still in development mode, I tried to add localhost to the Redirect Domain , but I failed.

I asked this question and answered it, having solved the problem with PageKite but it doesn’t help me right now, because I have problems with PageKite

Any suggestions for resolving this issue? Or how to develop an application using SkyDrive Api ?

+4
source share
1 answer

Use the Windows hosts file to map the domain to the local host. The hosts file is located under Windows\System32\Drivers\etc Add a line like this, then save the file.

 127.0.0.1 MyDomain.com 

Browsing MyDomain.com should open your default IIS root page. You can configure redirect URIs to map to your application on OneDrive, for example. http://example.com/myapp

See this link for more information: MSDN Web Applications - Testing Local Web Applications

+10
source

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


All Articles