Answered by:
Retrieve access token from the sign in popup

Question
-
Hi,
I tried searching but I could not find anything similar. My problem is (besides that I am new at this)
I used the exact same code from Live Interactive SDK to sign in a user. I have registered my app, used /desktop as the return URI. I am running this from a local webserver on my machine. . Everything works, the login window pops up asking for permission. I sign in and give permission and nothing happens. The pop up window (after singing in) points to this.
How do I get that window to close and the main window to say "You are signed in!" like it did in the Live Interactive SDK ? How to retrieve the access token from the popup to the main window ?
I hope I am clear. I had a hard time explaining this.
Thanks for any help
Jaanleva
- Edited by statickarma Wednesday, February 22, 2012 7:59 PM
Wednesday, February 22, 2012 7:58 PM
Answers
-
The app is currently running on a local web server on my PC. Is that still possible ?
Probably it's too late to reply, but I started only recently to work with the Live Connect SDK and found your post only now, and someone else could have the same problem.
For your question, yes, it's possible. Follow the instructions on this page and you should be fine (tested myself).
- Proposed as answer by JOshiroModerator Monday, July 16, 2012 4:57 PM
- Marked as answer by Navdeep Bawa-MSFTModerator Tuesday, August 7, 2012 8:39 PM
Monday, July 16, 2012 1:49 PM
All replies
-
Hi Jaanleva,
On a web page, you should provide a callback page on the domain your registed with your app site on the https://manage.dev.live.com page, e.g. https://foo.com/callback.html . The page should be an empty html page that simply loads https://js.live.net/v5.0/wl.js in a script tag. Instead of using the desktop callback, you pass in this url as the redirect_uri parameter in the WL.init call and your site has to be on that domain as well.
Thanks,
Lin
- Edited by Lin Wang - MSFTModerator Wednesday, February 22, 2012 8:48 PM
Wednesday, February 22, 2012 8:46 PMModerator -
The app is currently running on a local web server on my PC. Is that still possible ?Wednesday, February 22, 2012 8:54 PM
-
The app is currently running on a local web server on my PC. Is that still possible ?
Probably it's too late to reply, but I started only recently to work with the Live Connect SDK and found your post only now, and someone else could have the same problem.
For your question, yes, it's possible. Follow the instructions on this page and you should be fine (tested myself).
- Proposed as answer by JOshiroModerator Monday, July 16, 2012 4:57 PM
- Marked as answer by Navdeep Bawa-MSFTModerator Tuesday, August 7, 2012 8:39 PM
Monday, July 16, 2012 1:49 PM