Google Social Connect: Redirect URI mismatch error
I have setup Google Social Connect on a website. When I try to login through Google Social Connect, I get the following 404 error stating:
The redirect URI in the request: http://MY-WEBSITE-URL/socialconnect/google/connect/ did not match the registered redirect URI.
A possible cause for such kind of error is mismatch of URL between your website’s actual URL and the URL present in Authorized redirect URIs field in Google Developer Console settings.
This kind of error occurs if one URL has www (http://www.example.com) in it and the other URL is non-www (http://example.com). Or, even with the trailing slash (/) (http://example.com/) and non trailing slash (http://example.com) URL.
To solve this issue, the two URLs (your site’s actual URL and the URL present in the Authorized redirect URIs settings) should be exactly the same.
Here is the step-by-step procedure to go to Authorized redirect URIs settings in Google Developer Console.
2. Select your Project
3. Click on the menu icon
4. Click on API Manager menu
Here is a google developer console’s article about creating project and client ID.
Hope this helps.