Google Sign In Not Working In Hybrid Auth

Hi there,



I tested Hybrid Auth addon by enabling Google login but the following message popped up one the screen[color=#ff0000] [/color][color=#000000]“[font=arial, verdana, tahoma, sans-serif]Error: redirect_uri_mismatch[/font]”.[/color]



In the further description it was mentioned

[color=#000000]“[font=arial, verdana, tahoma, sans-serif]The redirect URI in the request: [/font][b]http://www.sitename.com/index.php?dispatch=auth.process&hauth.done=Google[/b][font=arial, verdana, tahoma, sans-serif] did not match a registered redirect URI[/font]”[/color]



I followed the following documentation listed here



I found a similar thread on the forums here: Hybrid Auth - Questions - CS-Cart Forums

But since no one has answered it yet, I’m posting so that more can view it and we find a significant solution to this problem



Thanks in advance.



Regards,

NaMo

Hello NaMo,



Did you received the email I sent you today? In any way, could you please provide us with URL of your store where occurs this problem?



Thanks

Hi eComLabs,



I do received your email but it seems that I can't reply on that email address. The error which we are facing is similar to this img. Though the url is different as mentioned in the image.

This error pops up when someone clicks on “Sign in with Google”



Regards,

NaMo

I have the same issue here



Error: redirect_uri_mismatch

The redirect URI in the request: https://www.xxxx.com/index.php?dispatch=auth.process&hauth.done=Google12 did not match a registered redirect URI



[list]

[]cookie_policy_enforce=false

[
]scope=https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email https://www.google.com/m8/feeds/

[]response_type=code

[
]redirect_uri=https://www.xxxx.com/index.php?dispatch=auth.process&hauth.done=Google14

[]access_type=offline

[
]display=page

[*]client_id=xxxxxxxxxxx.apps.googleusercontent.com

[/list]



The only diiference I can see is the mismatch in the query of & aganist & as show below.



dispatch=auth.process&hauth.done=Google

dispatch=auth.process&hauth.done=Google



I am unable to locate were this the call back is generated from in the cart and the out bound request is made from.

It is a bug.

the correct callback url http://…auth.process&hauth.done=Google



I have same problem.But now solved.



hauth.done displayed in the error msg is wrong.

hauth_done given in the addon setng is also wrong…this is a bug. hope cs-cart will fix it soon.



Hope this helps :grin:

[quote name=‘mymart’ timestamp=‘1411549029’ post=‘192788’]

the correct callback url http://…auth…uth.done=Google



I have same problem.But now solved.



hauth.done displayed in the error msg is wrong.

hauth_done given in the addon setng is also wrong…this is a bug. hope cs-cart will fix it soon.



Hope this helps :grin:

[/quote]



Please share the solution for with us as we are also facing same issue.

[quote name=‘mymart’ timestamp=‘1411549029’ post=‘192788’]

the correct callback url http://…auth…uth.done=Google



I have same problem.But now solved.



hauth.done displayed in the error msg is wrong.

hauth_done given in the addon setng is also wrong…this is a bug. hope cs-cart will fix it soon.



Hope this helps :grin:

[/quote]



Link is broken, i have the same issue here on 4.2.2. Facebook works fine, but google is somthing wrong whit the redirect uris.

Code from 4.2.2

<br />
<div class="control-group setting-wide"><br />
<label class="control-label">{__('google_callback_url')}: </label><br />
<div class="controls"><br />
  <input type="text" readonly="readonly" value="{"auth.process?hauth.done=Google"|fn_url:"C"}" onclick="this.select()"><br />
</div><br />
</div><br />

```<br />
<br />
Code from 4.2.4<br />
```php
<br />
{assign var='provider_name' value=$providers_schema[$provider]['provider']}<br />
<div class="control-group"><br />
<label class="control-label">{__('hybrid_auth.callback_url')}: </label><br />
<div class="controls"><br />
  <input type="text" class="span8" readonly="readonly" value="{"auth.process?hauth_done={$provider_name}"|fn_url:"C"}" onclick="this.select()"><br />
</div><br />
</div><br />

```<br />
Try to play with the code but i dont get it work.<br />
<br />
Sombody know how to get it work?<br />
<br />
Kindley regards

Try to use hauth.done instead of hauth_done in the URL. It solved the issue for one of our customers

[quote name='eComLabs' timestamp='1418027316' post='199014']

Try to use hauth.done instead of hauth_done in the URL. It solved the issue for one of our customers

[/quote]



Thank you ecomlabs, it worked.

In the addon its shows the callback url “hauth_done” but in google you need to place “hauth.done”



Kindley regards

We are having the same issue in MV 4.2.4.



I tried updating \design\backend\templates\addons\hybrid_auth\components\callback_url.tpl as per the post above, but it does not help. I've cleared the cache but no matter what this screen does not update :







Do I need to update it in another location?

Please specify the correct URL in the Google dashboard, not in CS-Cart. It is displayed for copy and paste here

[quote name='eComLabs' timestamp='1427800500' post='209693']

Please specify the correct URL in the Google dashboard, not in CS-Cart. It is displayed for copay and paste here

[/quote]



Actually I tried that and it was the same error. I tried it directly copied from that screen, and I even tried changing this as noted above : hauth.done[color=#282828][font=arial, verdana, tahoma, sans-serif] instead of [/font][/color]hauth_done

Has anyone been able to make this work? Has anyone been able to make any of the social logins work? Facebook login does not recognize login credentials … keeps saying incorrect password … Methinks the coding is bad to encourage the purchase of the addon … our install is right out of the box 4.2 and none of these work. Sad

[quote name='Angeltown' timestamp='1427801324' post='209700']

Actually I tried that and it was the same error. I tried it directly copied from that screen, and I even tried changing this as noted above : hauth.done[color=#282828][font=arial, verdana, tahoma, sans-serif] instead of [/font][/color]hauth_done

[/quote]



The check the last post here:



http://forum.cs-cart.com/tracker/issue-4579-hybrid-auth-module/page__st__20

Can anyone help here for 4.3.x

Thanks

We suggest you to contact CS-Cart support team with this issue

Can anyone help here for 4.3.x

Thanks

Please make sure that the correct URL is specified in the Authorized redirect URIs section in the Google App settings. If this solution does not suit you please contact us via HelpDesk.

Please make sure that the correct URL is specified in the Authorized redirect URIs section in the Google App settings. If this solution does not suit you please contact us via HelpDesk.

Dears its now working thanks :)