Issue with azure mobile services authentication

Hi,
since recent updates I am having an issue with authencating using Azure Mobile Services. I have included the reqiured plugins (device, inappbrowser) but the app stil gets redirected to the “done” page, instead of executing the .then() function. I use this in many apps and it used to work fine.

code is simple:

.run(function($rootScope) {
$rootScope.azmsc = new WindowsAzure.MobileServiceClient(‘…’, ‘…’);
$rootScope.azmsc.login(‘Google’).then(
function(){alert(‘loged in’);},
function(error){alert(error);}
);
})

None of the alerts gets invoked. I tried these plugins:

cordova-plugin-device 1.0.2-dev “Device”
cordova-plugin-inappbrowser 1.0.2-dev “InAppBrowser”

as proposed in https://azure.microsoft.com/en-us/documentation/articles/mobile-services-html-get-started-users/
as well as older versions, that work in my previously created apps

org.apache.cordova.device 0.3.0 “Device”
org.apache.cordova.inappbrowser 0.3.3 “InAppBrowser”

No success :S