December 2013
Intermediate to advanced
480 pages
14h 11m
English
If you want to log in a user using Live Connect then you simply call the WL.login method as demonstrated in Listing 14.2.
LISTING 14.2 Logging in a User (login\login.js)
(function () { "use strict"; function init() { var REDIRECT_DOMAIN = "http://liveSDKDemo.Superexpert.com"; var spanResults = document.getElementById("spanResults"); var scopes = ["wl.signin"]; WL.init({ scope: scopes, redirect_uri: REDIRECT_DOMAIN }); WL.login().then( function (loginResults) { spanResults.innerText = "Connected"; }, function (loginResponse) { spanResults.innerText = ...
Read now
Unlock full access