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.
source share