YAFLogo

Posted by: Roger Martin - Tuesday, 11 March 2014 18:38:12
I recently upgraded to 2.1.1 and am now trying to enable Google API single sign on. I [url=https://github.com/YAFNET/YAFNET/wiki/Google-Integration]followed the directions[/url] 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 [url=http://forum.galleryserverpro.com]http://forum.galleryserverpro.com[/url] Thanks, Roger Martin Lead Developer and Creator, Gallery Server Pro http://www.galleryserverpro.com

Posted by: tha_watcha - Thursday, 13 March 2014 13:54:43
Looks like one field is empty. try the solution posted on [url=http://stackoverflow.com/questions/18677244/error-invalid-client-no-application-name]Stackoverflow[/url]

Posted by: Roger Martin - Thursday, 13 March 2014 15:07:28
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

Posted by: tha_watcha - Thursday, 13 March 2014 15:22:42
[quote=Roger Martin;63095]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[/quote] 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.[/quote] 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.[/quote]

Posted by: Roger Martin - Tuesday, 18 March 2014 17:19:41
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.

Posted by: tha_watcha - Wednesday, 19 March 2014 10:38:32
[quote=Roger Martin;63153]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.[/quote] 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.

Posted by: Roger Martin - Wednesday, 19 March 2014 15:29:12
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