Using ripple authentication fails on azure mobile services (.net backend)

My setup:

  • azure mobile service with .net file configured with google
  • Telephone Communications (VS2013 with CTP3 Cordon Tools)
  • The service works great with an Android device

Problem:

  • Ripple authentication does not work (dialogue does not close)

Using ripples, when I call client.login (), an authentication dialog appears, it authenticates, but the popup does not close. And callback done () is never called. The popup url looks something like this:https://localhost:44307/login/done#token=%7B%22user%22%3A%7B%22userId%22%3A%22Google%3A1...

I'm not sure if it should work, but using the html client (downloaded from the management portal) works fine with authentication. I tried turning off the proxies in a ripple and did not evaluate the project without any luck.

Update: I use the default client, nothing special here

//  
<script src="http://ajax.aspnetcdn.com/ajax/mobileservices/MobileServices.Web-1.2.5.min.js"></script>
  var client = new WindowsAzure.MobileServiceClient(
        'https://my-app-service.azure-mobile.net/',
        //'https://localhost:44307/',
        'jFWBtWeZsRaerKJzkCVC........');

var service = {
    isSettingsLoaded: false,
    saved: null,

    login: function() {
        var self = this;
        var dfd = $q.defer();
        client.login('google').done(function(d) {
                // This is not called when using Ripple
            }
        );
        return dfd.promise;
    }
}

Thanks for any help

To consider

Larsi

+4
source share
1 answer

I had the same problem and the fix was to add the URL of your allowed external redirects.

see step 7 in How to configure the mobile app service for external redirect URLs.

+1
source

All Articles