#1
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😛age
client_id😶XXXXXXX

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 
Topic Starter
  • Roger Martin
  • Rank: YAF Forumling
  • Reputation:
    Neutral
    55.4%
  • Joined: 21/09/2010
  • Posts: 9
  • Location: United States
#2
Looks like one field is empty.

try the solution posted on Stackoverflow 
UserPostedImage
  • tha_watcha
  • Rank: YAF.NET Project Lead
  • Reputation:
    Exalted
    100%
  • Medals:
    Medal of Honor: Portal Puzzle Master: Portal Puzzle Master for DNNMedal of Honor Key: Given to pillars of the community who are key players in the YAF community and project.DNN Master: DNN Module ManBug Killer Medal of Honor: Medal for being a kick-ass bug killer!Medal of Honor for the Support King: Support King! Amazing asset to the YAF.NET Community.
  • Joined: 06/03/2010
  • Posts: 4,002
  •  Germany
  • Thanks: 74 times
  • Was thanked: 1205 time(s) in 1031 post(s)
#3
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
Topic Starter
  • Roger Martin
  • Rank: YAF Forumling
  • Reputation:
    Neutral
    55.4%
  • Joined: 21/09/2010
  • Posts: 9
  • Location: United States
#4
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
  • tha_watcha
  • Rank: YAF.NET Project Lead
  • Reputation:
    Exalted
    100%
  • Medals:
    Medal of Honor: Portal Puzzle Master: Portal Puzzle Master for DNNMedal of Honor Key: Given to pillars of the community who are key players in the YAF community and project.DNN Master: DNN Module ManBug Killer Medal of Honor: Medal for being a kick-ass bug killer!Medal of Honor for the Support King: Support King! Amazing asset to the YAF.NET Community.
  • Joined: 06/03/2010
  • Posts: 4,002
  •  Germany
  • Thanks: 74 times
  • Was thanked: 1205 time(s) in 1031 post(s)
#5
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.
Topic Starter
  • Roger Martin
  • Rank: YAF Forumling
  • Reputation:
    Neutral
    55.4%
  • Joined: 21/09/2010
  • Posts: 9
  • Location: United States
#6
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
  • tha_watcha
  • Rank: YAF.NET Project Lead
  • Reputation:
    Exalted
    100%
  • Medals:
    Medal of Honor: Portal Puzzle Master: Portal Puzzle Master for DNNMedal of Honor Key: Given to pillars of the community who are key players in the YAF community and project.DNN Master: DNN Module ManBug Killer Medal of Honor: Medal for being a kick-ass bug killer!Medal of Honor for the Support King: Support King! Amazing asset to the YAF.NET Community.
  • Joined: 06/03/2010
  • Posts: 4,002
  •  Germany
  • Thanks: 74 times
  • Was thanked: 1205 time(s) in 1031 post(s)
#7
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
Topic Starter
  • Roger Martin
  • Rank: YAF Forumling
  • Reputation:
    Neutral
    55.4%
  • Joined: 21/09/2010
  • Posts: 9
  • Location: United States
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