Shade- / MyGoogle--Connect

A plugin to integrate Google+ with MyBB, letting users login and register through Google+.
10 stars 4 forks source link

Google+ integration is not working #9

Closed jassics closed 10 years ago

jassics commented 10 years ago
  1. When I tried to click on "login with Google+" (Not registered, so it will ask permission and register the user) At final page I got this error: Error fetching OAuth2 access token, message: 'invalid_client'
  2. When I loggedin using username and password, clicked on usercp >> google+ integration and then clicked on "Click here to link your account with your Google+'s one"

This is the error that I am getting. Got Error 400 (OAuth2 Error) The redirect URI in the request: http://www.aliencoders.org/forum/usercp.php?action=do_gplink did not match a registered redirect URI.

Request Details

scope=https://www.googleapis.com/auth/plus.login https://www.googleapis.com/auth/userinfo.email
response_type=code
access_type=offline
redirect_uri=http://www.aliencoders.org/forum/usercp.php?action=do_gplink
approval_prompt=auto
client_id=590804988521-t7m2lough02fdjb72jtshm7qc3t0o01b.apps.googleusercontent.com

That’s all we know.

Can you please let me know what I need to do to solve this error. I must say proper online documentation is required now.

Shade- commented 10 years ago

The docs are already available here on GitHub. Check them out, they contain everything you need to know to configure MGC.

jassics commented 10 years ago

Hi Shade, Thank you so much for very fast response. But I am very sorry to say that if you are referring to the online doc at https://github.com/Shade-/MyGoogle--Connect/wiki

Then it has nothing which requires for layman to install and activate it with proper configuration. I am getting stuck at redirect_uri as from usercp.php and from login.php it will be different.

I would request you to please test once to register an account and one to integrate the G+ account. If possible please share the video of this plugin in youtube. That would be very much helpful to many users like us. Your FB and Twitter login integration worked like charm.

I just faced some issues with this and some of my clients want to register through G+ only :(

Shade- commented 10 years ago

https://github.com/Shade-/MyGoogle--Connect/wiki/How-to-install

jassics commented 10 years ago

Oh my bad. I didn't see listing of pages. Thanks for your generous reply. I will let you know if it works for me as per the documentation in a day (at max)

jassics commented 10 years ago

I read the wiki install page and did as instructed, but now I am getting below error while integrating or login/register through google+

An unknown error occurred. The output of the error is: Error fetching OAuth2 access token, message: 'invalid_client'

As you said I added three links each with new line added: http://www.aliencoders.org/forum/mygpconnect.php?action=do_login http://www.aliencoders.org/forum/usercp.php?action=do_gplink http://www.aliencoders.org/forum/usercp.php?action=mygpconnect

Last option is uninstalling and deleting all files related to this module except library files and upload all files from the scratch but that should not be an issue, I guess.

Please help me to add this plugin successfully.

jassics commented 10 years ago

Hey Shade. It is working now. I must say this is as good as FB and twitter integration from you. It is working now.

Actually when I read your doc again I missed https thing which is not required and javascript origins was having https in url, I changed it to http and it is working now.

Although I would suggest that instead of all three different plugins, is it possible it make it one and instead of just text with link, if it would show image with link like oneall.com sociall login feature. Ex: http://aliencoders.org/wp-login.php

Shade- commented 10 years ago

I won't merge the 3 plugins in one. It would be a massive load of code to download and upload. It's just fine like they are at the moment.

As for the image, you can customize your own copy of every plugin by wrapping your desired image within the login URL in your header_welcomeblock_guest template, or whatever you want to display the login link. The plugins' core won't have an image, as I want them to be as simple as possible.

jassics commented 10 years ago

Thank you so much for your patience and the justification. Your logic is right and i appreciate for your positive feedback.