0





21

Advertisement

I'm using Azure mobile service to login an Angular/ionic app using Facebook.

client.login("facebook").then(function (data){
    console.log('logged in succesfully..')
    $state.go('menu.events');
}, function(error){
    console.log('login failed.');
});

The Facebook login page poped up and I entered email/password and it logged in successfully. Then it redirect to an Url

https://mysite.azurewebsites.net/.auth/login/facebook/callback?code=AQBLNJX....l588-rnr2PLtoUJWWza....wq8OKv_LT6QZ3kgWa.......

and the page just shows one sentence,

You do not have permission to view this directory or page. enter image description here

I closed window and then the failed callback is called and printed 'login failed' in the console.

Question author Dc7a9163d9 | Source

Advertisement


0


You are also using Ripple. See the following blog post on auth + mobile apps + Ripple. https://shellmonger.com/2016/04/04/30-days-of-zumo-v2-azure-mobile-apps-day-3-azure-ad-authentication/

The blog post covers AAD, but the Ripple + Mobile Apps information is valid for every auth provider.

Answer author Adrian-hall