Skydrive API callback URL for localhost

I am trying to embed the SkyDrive API in my asp.net mvc3 application. I tried to create an application in Microsoft using this tutorial to implement user authentication, but I ran into a problem in Callback Url , because Microsoft forces me to add a real domain, and I want to use my local host to develop it right now.

0
source share
3 answers

I found a solution for my problem, I used pageKite to solve my problem. pagekite gave me an alternative to my localhost by matching my localhost with a real domain. so I added this domain to my application at Microsoft and its work.

0
source

Alternatively, you can add a fake domain to your

  • / etc / hosts (Linux)
  • C: \ Windows \ System32 \ drivers \ etc \ hosts (windows)

file. Just add the following lines:

 127.0.0.1 www.yourfakedomain.de 

After adding this line, you can select something like Microsoft OneDrive App-Center

 http://www.yourfakedomain.de/blabla.php 

as your uri redirect.

Since your operating system thinks that the domain belongs to the local host, you can only get your authentication code in your local test domain; -)

+1
source

How is the SkyDrive call code on your local machine?

One way to do this is to first lure SkyDrive into your application, that is, you do not name the real SkyDrive, just a service that you use locally, which acts as if it were SkyDrive. You can use this to develop and debug your application to some extent.

You can then deploy your application to a test server on the Internet so that SkyDrive can call back, and you can test it there and make the necessary changes before deploying it to the actual production server.

0
source

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


All Articles