1

I am creating a Xamarin.Forms application and using Azure's Authentication/Authorization to add Facebook and Google as authentication providers. In my code, I am using the LoginAsync() from MobileServiceClient class to perform the login for both Facebook and Google.

I am able to successfully authenticate Facebook users. However, with Google login, once the code executes LoginAsync(), it takes the user to Google's sign-in page (https://accounts.google.com/signin/oauth/...) and just stops there. The page is blank and nothing is displayed.

Screenshot of empty page

I tried logging in using Chrome with my azure app url (https://traveldiary.azurewebsites.net/.auth/login/google/callback) and Google login shows up and when I select my gmail account to access the site, I get to a page that shows the message:

traveldiary.azurewebsites.net is currently unable to handle this request. HTTP ERROR 500

I have followed all the steps to configure Google Login from Microsoft site - here. Is there any other setting that is missing that I have to add to make Google sign-in page show up and then redirect to my authorized Redirect URI once successfully logged in.

Thanks for any help or suggestions.

Jenni
  • 85
  • 2
  • 5
  • Check this [link](https://learn.microsoft.com/en-us/azure/app-service-mobile/app-service-mobile-xamarin-forms-get-started-users) maybe help. – nevermore Feb 22 '19 at 09:46
  • I have followed the steps from that link as well but there is no difference. There must be something to do with Google redirect. If I use, https://traveldiary.azurewebsites.net/.auth/login/facebook/callback, I can successfully login and return back to azure. – Jenni Feb 22 '19 at 19:57

0 Answers0