This is all for a local development environment (in OS X) and I have:
- local nginx with a virtual host
- the app being served properly on myapp.dev (being proxied to localhost:3000)
- Google app created
- ServiceConfiguration.configurations properly setting service, clientId, loginStyle and secret
But when clicking on the google button to sign in I get:
- That’s an error.
Error: redirect_uri_mismatch
Application: MyApp
You can email the developer of this application at: blah@example.com
The redirect URI in the request: http://localhost:3000/_oauth/google did not match a registered redirect URI.
It's technically correct because since Google do not accept to put specific IP addresses for the callback (only localhost
or some domain), I needed to setup as callback http://myapp.dev/_oauth/google
so I can use it from the mobile device.
The problem seems to be related to accounts trying to redirect localhost:3000 instead of myapp.dev
I don't know how to setup accounts to use this domain, or maybe is a global way to tell that meteor app that it should use the myapp.dev
domain
A solution to this would be a solution to any development environment setup for Meteor mobile apps. Thanks