Google login redirect error with Azure Mobile Service Javascript client SDK -


when web client tried login google azure mobile javascript sdk, gave me error.

<html> <head>   <script src="https://ajax.aspnetcdn.com/ajax/mobileservices/mobileservices.web-1.2.7.min.js"></script>    <script>    function signin(){          var mobileserviceclient = windowsazure.mobileserviceclient;      var client = new mobileserviceclient('https://thehome.azurewebsites.net', 'xxxx');      client.login("google").done(function (results) {          alert("you logged in as: " + results.userid);     }, function (err) {         alert("error: " + err);     });   }   </script>  </head>  <body>     <button onclick="signin()">click me</button> </body>  </html> 

i used sample code https://azure.microsoft.com/en-us/documentation/articles/mobile-services-html-how-to-use-client-library/ . if click button, got below error.

cannot /login/google?completion_type=postmessage&completion_origin=https%3a%2f%2fthehome.azurewebsites.net 

my ios application works server app, web client has problem.

any suggestions?

remember login provider google ping servers server after login.

right now, it's complaining service in azure thehome not there.

please follow guide configure google account make work mobile services:

https://azure.microsoft.com/en-us/documentation/articles/mobile-services-how-to-register-google-authentication/


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -