问题
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:
- 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