Roger Martin
  • Posts: 9
  • Joined: 21/09/2010
I recently upgraded to 2.1.1 and am now trying to enable Google API single sign on. I followed the directions  and can get to the 'Login with Google' button, but when I click it, I am redirected to Google and then shown this error:

Error: invalid_client

no application name
Request Details

cookie_policy_enforce=false
scope=https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email 
response_type=code
access_type=online
redirect_uri=http://forum.galleryserverpro.com/auth.aspx?auth=google
display=page
client_id=XXXXXXXX

I don't know what is causing this but one thing I wonder is whether I have the right API enabled in Google. Their APIs page list dozens of APIs you can enable. Which one is required for SSO? I've tried Contacts API and Google+ API.

Edit: You can see for yourself at http://forum.galleryserverpro.com 

Thanks,
Roger Martin
Lead Developer and Creator, Gallery Server Pro
http://www.galleryserverpro.com 
Sponsor
tha_watcha
  • Posts: 4080
  • Joined: 06/03/2010
Looks like one field is empty.

try the solution posted on Stackoverflow 
UserPostedImage
Roger Martin
  • Posts: 9
  • Joined: 21/09/2010
Thanks - that helped get past the initial error. Now I get the message "The Google Login failed, User does not exists, or the account is not connected." As before, you can see for yourself at http://forum.galleryserverpro.com 

Thanks!
Roger
tha_watcha
  • Posts: 4080
  • Joined: 06/03/2010
Originally Posted by: Roger Martin

Thanks - that helped get past the initial error. Now I get the message "The Google Login failed, User does not exists, or the account is not connected." As before, you can see for yourself at http://forum.galleryserverpro.com 

Thanks!
Roger



Which option do you choose
Quote:

Login with a user account that is connected with Google. Or if no account is found a new account will be automatically created in the forums.



or
Quote:

Login with a user account that is connected with Google. Or if no account is found a new account will be automatically created in the forums.
Connect an existing forums account with your Facebook account You need to login thru the forums first. The Google email address must match the forum user email address to connect the user.



UserPostedImage
Roger Martin
  • Posts: 9
  • Joined: 21/09/2010
The first option. I'm trying to test the scenario where a first-time user comes to my forum and uses their Google account to log in.
tha_watcha
  • Posts: 4080
  • Joined: 06/03/2010
Originally Posted by: Roger Martin

The first option. I'm trying to test the scenario where a first-time user comes to my forum and uses their Google account to log in.



In that case the error message comes only when the email address of the google user already exists as user in the forum. I change the error message to make this better understandable.
UserPostedImage
Roger Martin
  • Posts: 9
  • Joined: 21/09/2010
Ahh, OK. I tried using a Google account whose email wasn't used by any forum accounts and was able to authenticate, so it appears you are right.

Thanks for you help. Great product!

Roger
Forum Jump  
  • You cannot post new topics in this forum.
  • You cannot reply to topics in this forum.
  • You cannot delete your posts in this forum.
  • You cannot edit your posts in this forum.
  • You cannot create polls in this forum.
  • You cannot vote in polls in this forum.

About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button

Project Twitter Updates

Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved