redirect_uri_mismatch error in social login

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
6 年 前
Hi everyone,

I am getting the below error in my social login plugin whenever i click on google login button.

Error: redirect_uri_mismatch

The redirect URI in the request, http://abc.123.com/plugins/xyzSocialLogin/GoogleLoginCallback/, does not match the ones authorized for the OAuth client. Visit https://console.developers.google.com/apis/credentials/oauthclient/573473322947-ukptsbfndbdicl0dq1m8e235kbsek04t.apps.googleusercontent.com?project=573473322947 to update the authorized redirect URIs.

How to resolve this problem? Can anyone help?


regards,
Sachin Tripathi
6 年 前
Hello Sachin,

Can you provide redirect url that you are using?

Thanks,
Jatin
6 年 前
Hi Jatin,

The url is http://demo5.nopextensions.com/


thanks
6 年 前
Hello Sachin,

Go here: https://console.developers.google.com/apis/credentials/oauthclient/206036441336-cfv4v81ja5jdtrd5dsmbrjnnpolavfqh.apps.googleusercontent.com?project=neat-bliss-174707&authuser=1


Find this
Authorized redirect URIs

And add value like this
http://localhost:45352/signin-google

Thanks,
Jatin
6 年 前
Hi Jatin,

The link you provided is showing failed to load. https://console.developers.google.com/apis/credentials/oauthclient/206036441336-cfv4v81ja5jdtrd5dsmbrjnnpolavfqh.apps.googleusercontent.com?project=neat-bliss-174707&authuser=1



I put the url 'http://demo5.nopextensions.com/signin-google' in Authorized redirect URIs textbox. But it didn't worked.
6 年 前
Can you send screenshot of Authorized redirect URIs ?

Thanks,
Jatin
6 年 前
Client ID  
570877541655-v20kfmgqhbshcaq5qg4iqjbmcruohm4.apps.googleusercontent.com
Client secret  
nRZyJjCVe5EQM-yIr-evaQe
Creation date  
Aug 2, 2017, 11:59:34 PM
Name

Web client 1
Restrictions

Enter JavaScript origins, redirect URIs, or both

Authorized JavaScript origins
For use with requests from a browser. This is the origin URI of the client application. It can't contain a wildcard (http://*.example.com) or a path (http://example.com/subdir). If you're using a nonstandard port, you must include it in the origin URI.

http://demo5.nopextensions.com


Authorized redirect URIs
For use with requests from a web server. This is the path in your application that users are redirected to after they have authenticated with Google. The path will be appended with the authorization code for access. Must have a protocol. Cannot contain URL fragments or relative paths. Cannot be a public IP address.

http://demo5.nopextensions.com/
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.