using Azure Mobile App for Google authentication

≯℡__Kan透↙ 提交于 2019-12-12 04:08:26

问题


I follow this tutorial for Google authentication for my web application.

I specified the following in my Google Developers Console:

Authorized JavaScript origins = my Azure mobile app url

Authorized redirect URIs = my web app url + /.auth/login/google/callback 

But in this case I get the following error:

  1. That’s an error.

Error: redirect_uri_mismatch

The redirect URI in the request: mobile app url + .auth/login/google/callback did not match a registered redirect URI.

If I use url of my mobile app instead of web app url for Authorized redirect URIs, it work, but not redirected to my web site.

How I can specify different urls for Authorized JavaScript origins and Authorized redirect URIs?


回答1:


You are likely running into the External Redirect URIs based on your Hosted comment. Check out the authentication section of the developer guide here: https://azure.microsoft.com/en-us/documentation/articles/app-service-mobile-cordova-how-to-use-client-library/#auth - the last section is on updating CORS and the external redirect URIs.



来源:https://stackoverflow.com/questions/35964405/using-azure-mobile-app-for-google-authentication

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!