Nov 28 2016 08:16 AM
Recently we migrated to Yammer Enterprise on o365 using O365 SSO to cope with soon to be deprecated Yammer SSO. Previously registered apps built using Yammer JavaScript SDK suddenly ask now for oAuth2 authorization. This was not the case earlier. Also, checked with the Yammer Notifier desktop app and it does not require the oAuth2 authorization (registers itself). Is there something we miss here (in app configuration maybe)?
We use something of this format:
yam.getLoginStatus( function(response) { if (response.authResponse) { console.log("logged in"); console.dir(response); //print user information to the console } else { yam.platform.login(function (response) { //prompt user to login and authorize your app, as necessary if (response.authResponse) { console.dir(response); //print user information to the console } }); } } );
ref: https://developer.yammer.com/docs/js-sdk
Even more confusing is this line from the official documentation - "Once the page has checked the user’s status, the user may need to be prompted to login and authorize your app against their Yammer user account."