Jump to content

Sign in through Google


Lavo

Recommended Posts

Nice add-on, Marcher. But, I couldn't get it to work. Went through the process and thought it would be nice to add a Google Login method to my community but the Facebook and Twitter methods were easier to figure than Google. I just keep getting an error in the login method with Google.

Link to comment
Share on other sites

  • Replies 375
  • Created
  • Last Reply

Nice add-on, Marcher. But, I couldn't get it to work. Went through the process and thought it would be nice to add a Google Login method to my community but the Facebook and Twitter methods were easier to figure than Google. I just keep getting an error in the login method with Google.

More information please....you give me no information to be able to determine where you are having issue.

Board URL, Board version, and redirect URI's from Google API console.

Hook enabled? Login Module enabled? IPB settings for the mod filled out with Google API console info?

Link to comment
Share on other sites

I don't know. When I uploaded the required files to my website, apply for the Client ID through Google, and include that information in the Google login, everything seems to run perfectly. That is, until I click on the "Google" icon to either sign in or to create an account and then I get an error saying it's not authorized.

I read through the files included with your download and followed the instructions in the ACP as well as on Google and it simply kept giving me errors during the login and account creation process. It just redirected me to an error page.

Link to comment
Share on other sites

I don't know. When I uploaded the required files to my website, apply for the Client ID through Google, and include that information in the Google login, everything seems to run perfectly. That is, until I click on the "Google" icon to either sign in or to create an account and then I get an error saying it's not authorized.

I read through the files included with your download and followed the instructions in the ACP as well as on Google and it simply kept giving me errors during the login and account creation process. It just redirected me to an error page.

As others before you,

Board URl, and redirect URI's from Google API console.

Give me the information I need to help you, the script is mis-configured on Google API Console's end 10/1 odds.

I try... extremely hard to make this crystal clear in the readme, you have to input the valid callback URI's(redirect URI's) for your login to google installation... into the Google API console for the client id you made for the installation.

Link to comment
Share on other sites

Let me try to reinstall it then ... I'll post exactly what I did to install it. I had done this twice and got the same errors. I generally try to work out an install on my own a few times before posting a problem with it, Marcher. lols But, I'll try to install it again and see what happens.

Link to comment
Share on other sites

I still get the same error. Marcher, while it installs correctly after everything is uploaded and the settings are entered, I get the following error:

Untitled_1.png

I've tried setting up the login process through my account profile, like I did with Facebook and Twitter. I get the same error also when I try to log in with my Google account and when I try to create an account. Unless there's some other process I'm forgetting. The only fields that aren;t filled in are the following:

Untitled_1.png

From the way I understood the installation instructions, the above fields weren't necessary unless a step was left out.

Link to comment
Share on other sites

I still get the same error. Marcher, while it installs correctly after everything is uploaded and the settings are entered, I get the following error:

Untitled_1.png

sir... the error precisely tells you the problem point blank, and it was as I surmised.

Copy the url from the error.

Visit the google api console, and the client id you created for this mod.

edit the redirect URI's, click 'more' if necessary, paste the URL on a new line, save.

Link to comment
Share on other sites

Thanks, Marcher. I was using "https://" for secure login because that's what the Google API gave as an example so I thought that's what was needed. Apparently, the setup doesn't like the "https" method. :lol: I didn't know that the login method would have problems with the "https" method. lols

Link to comment
Share on other sites

Thanks, Marcher. I was using "https://" for secure login because that's what the Google API gave as an example so I thought that's what was needed. Apparently, the setup doesn't like the "https" method. :lol: I didn't know that the login method would have problems with the "https" method. lols

It doesn't actually. Google is just verrry specific on an exact match, if Login through https is enabled in IPB, you would *have* to have the https links in the redirect URI's or it would do same. Glad is sorted for you. :)

Link to comment
Share on other sites

I'm glad it finally worked. I had just assumed that with this being a web application through Google that it would require a secure login. Many of the larger companies do ... my mistake for assuming that Google would require a secure login through https. lols

Link to comment
Share on other sites

I'm glad it finally worked. I had just assumed that with this being a web application through Google that it would require a secure login. Many of the larger companies do ... my mistake for assuming that Google would require a secure login through https. lols

They do.

The redirect urls are where to return you *after* auth, it is handled securely through https on their server.

If you choose to use https for IPB, that is supported(but quite moot for this login method's security), assuming you use https in the redirect URI's.

They require an exact match for these callback url's being used in the client for security.

Link to comment
Share on other sites

  • 2 weeks later...

The redirect URI in the request: http://[URL.com]/board/interface/board/google.php did not match a registered redirect URI

What am I doing wrong? I checked and all the files are uploaded in the proper place. Please advise.

please.

Read the posts on this page, the user before you had the same issue, and this is a repetitive issue, but easily resolved, and not one I can resolve for you, those urls in the console must match.

Link to comment
Share on other sites

  • 3 weeks later...

This will break my secured login page (Use SSL) due this icon is served over the regular http port 80:

public/style_extra/signin/login-google-icon.png

Where do I find this so I can correct this?

IPB's supported facebook, twitter and windows live have no such issue.

Link to comment
Share on other sites

This will break my secured login page (Use SSL) due this icon is served over the regular http port 80:

public/style_extra/signin/login-google-icon.png

Where do I find this so I can correct this?

IPB's supported facebook, twitter and windows live have no such issue.

in the templates, skin_google, will have an update for this and mobile 3.4 issues up ASAP.

Link to comment
Share on other sites

in the templates, skin_google, will have an update for this and mobile 3.4 issues up ASAP.

Thanks, I have changed this and relocated the icon to the IPB default location at:

<img src='{$this->settings['img_url']}/loginmethods/login-google-icon.png' alt='{$this->lang->words['log_in_google']}' />
Link to comment
Share on other sites

Thanks, I have changed this and relocated the icon to the IPB default location at:

<img src='{$this->settings['img_url']}/loginmethods/login-google-icon.png' alt='{$this->lang->words['log_in_google']}' />

well... actually.... i'm not the only one using publicstyle_extrasignin,(stock fb/twiter does...) and putting all of these in the skin was not in my plans regarding fixing the ssl err, but sure, that works, might as well stick them in the skin dirs.

Link to comment
Share on other sites

  • 2 weeks later...

hey meaybe you could add a feature to have us save this UID so we can link it to author metadata!

I am saving it for your use, and mine in the code, with no user intervention manually beyond login or profile synch. To allow the user to enter that unique id, instead of being authorized to actually belong to that unique id, would vastly weaken security on the whole.

Link to comment
Share on other sites

I am saving it for your use, and mine in the code, with no user intervention manually beyond login or profile synch. To allow the user to enter that unique id, instead of being authorized to actually belong to that unique id, would vastly weaken security on the whole.

I meant save/dont save user-control, but nevermind you already do what i wanted :D

now to find how to get that info :)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...