Windows Live Popup

When I use this code at the top of the web page

WL.init({ client_id: "0000000040102460", redirect_uri: document.URL, scope: "wl.signin", response_type: "token" }); WL.login().then( function (response) { WL.api({ path: "me", method: "GET" }) .then(function (response) { userid = response.id; $("#wlProfileName").text(response.name); init(response); }); }); 

The registration process takes place in a pop-up window. This is a bad idea, not least because many browsers are configured to ban them.

When you log into the system, for example, in outlook.com, the process occurs in the same browser window. How do I achieve this?


The appearance of the question, combined with the complete absence of answers, is alarming. However, I have an idea: WL.debug.js is available for study. It may be possible to hack this to use an IFRAME instead of a popup.

This should solve the problem without changing the underlying method and WL code stream.

Right now I'm going to go on a few weeks off, and I will not have the opportunity to pursue this thought, but if someone cares for the above modification, I would like to join when I return.

+4
source share
1 answer

Try this php sample. Go to http://www.microsoft.com/en-us/download/details.aspx?id=7843 , click the download button, select only webauth-php-1.2.tar.gz and download. After unpacking, put the contents in xampp/htdocs to your computer and the http://localhost/webauth/sample/index.php call address from your browser.

0
source

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


All Articles