문제

I have created an Azure Mobile Services using .NET backend.

I am trying to authenticate on Azure Mobile Services with Facebook using the azure mobile services client.

http://ajax.aspnetcdn.com/ajax/mobileservices/MobileServices.Web-1.1.3.min.js.

function logIn() {
    client.login("facebook").then(refreshAuthDisplay, function(error){
        alert(error);
    });
}

Facebook Login popup is appearing and I was able to enter the Facebook credential/password.

The latest request is being executed successfully, I am logged into facebook.

https://{azure_mobile_url}/login/done?completion_type=postMessage&completion_origin=http%3A%2F%2Flocalhost%3A6568

However the Facebook login popup is not being closed therefore the javascript promises "complete" callback is not executing.

도움이 되었습니까?

해결책

Currently the .NET backend does not support authentication using the Javascript client. It is being worked on, and will be supported before the .NET runtime leaves preview status.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top