Azure-docs: Callback after logging on with Google fails

Created on 18 Jun 2018  Â·  9Comments  Â·  Source: MicrosoftDocs/azure-docs

I tried this setup with an empty web application, and it fails with a server error during the callback after logging on with Google.

My setup is a new web application, node 9, linux and then tried this setup. I have verified the the two properties to be configured on the Azure side and the endpoints to configure for the Google credentials


Dokumentinformasjon

⚠ Ikke rediger denne delen. Den kreves for koblingen docs.microsoft.com ➟ GitHub-problem.

Pri2 app-service-mobilsvc assigned-to-author product-issue triaged

All 9 comments

@lindsve Thanks for the feedback! We are currently investigating and will update you shortly.

Hi @lindsve - I repro-d this issue and confirmed that there's 502 Bad Gateway error from nginx when https://yoursite.azurewebsites.net/.auth/login/google/callback is invoked during the sign-in process.
As such, I have assigned this issue to the author to investigate further and take the right course of action.

Thanks for the confirmation!

Any update on this?

I also got an error from nginx when callback was invoked. My app was a python flask app in a docker container. But I just did the tutorial on https://docs.microsoft.com/en-us/azure/app-service/app-service-web-get-started-python where you use a GIT-Repo. The real difference is that the example code implements a WSGI-interface. And I think nginx needs that to handle the authentication. With this code everything seems to work.

I'm trying to redirect the user back to the app after the OAuth finishes. The Azure's documentation on this subject is very poor. I'm trying to add a AndroidManifest.xml to the res/native/android folder in the Apache Cordova Tools project. I figured I need to add "myapp://easyauth.callback" to metadata & map the redirect with an "intent-filter". Could you point me to the right syntax/method of doing this? Any help will be deeply appreciated. Thanks!

I also get a 502 error, mine is from Apache 2.4 running in a container. The docs suggest this is simple to enable, but it appears maybe it doesn't work?

Hi, I am getting an Access denied error, even after doing all the setup.
"InnerException": {
"Message": "An error has occurred.",
"ExceptionMessage": "Access is denied",
"ExceptionType": "System.Net.HttpListenerException",
"StackTrace": " at System.Net.HttpListener.SetupV2Config()\r\n at System.Net.HttpListener.Start()\r\n at Google.Apis.Auth.OAuth2.LocalServerCodeReceiver.StartListener()\r\n at Google.Apis.Auth.OAuth2.LocalServerCodeReceiver.d__14.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at Google.Apis.Auth.OAuth2.AuthorizationCodeInstalledApp.d__8.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at Google.Apis.Auth.OAuth2.GoogleWebAuthorizationBroker.d__4.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at Google.Apis.Auth.OAuth2.GoogleWebAuthorizationBroker.d__1.MoveNext()"
}

I tired using this with Android. Error message shows "Unable to authorise user". Please help me solve this. I have done everything according to the documentation provided.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AronT-TLV picture AronT-TLV  Â·  3Comments

jamesgallagher-ie picture jamesgallagher-ie  Â·  3Comments

jharbieh picture jharbieh  Â·  3Comments

monteledwards picture monteledwards  Â·  3Comments

bdcoder2 picture bdcoder2  Â·  3Comments