By: Noelle Keller user 09 Sep 2015 at 1:39 p.m. CDT

7 Responses
Noelle Keller gravatar
Hello, I opedn a previous ticket Google API, but I have some updates and it won't let me edit my reply but I have followed the steps from http://www.gluu.org/docs/articles/social-login-google/ Here is the link to wrapper.log, http://rghost.net/8cRPHn6wK. On the Gluu server, when I attempt to login with the Google + button the first time, it will navigate tot he Google authentication screen, I select allow. The Gluus server says invalid credential and login. Then when i try again after the Google authentication screen says http 400, no client id.... I have pasted the logs error below NFO | jvm 1 | 2015/09/09 17:58:38 | 2015-09-09 17:58:38,087 TRACE [org.xdi.oxauth.service.SessionIdService] Session dn: uniqueIdentifier=d6391da9-e6f3-4562-902d- f4e00002e7ed,ou=session,o=@!E57E.88D3.9FEC.1FE7!0001!5511.6479,o=gluu INFO | jvm 1 | 2015/09/09 17:58:38 | 2015-09-09 17:58:38,087 DEBUG [org.xdi.oxauth.service.external.ExternalAuthenticationService] Executing python 'authenticate' authenticator method INFO | jvm 1 | 2015/09/09 17:58:38 | Google+ Authenticate for step 1 INFO | jvm 1 | 2015/09/09 17:58:38 | Google+ Authenticate for step 1. gplusAuthCode: 4/r0-CNgKzsRe_tHOYk3t8_ox2yG7yPpRdgGFfaVqVkec INFO | jvm 1 | 2015/09/09 17:58:38 | Google+ Authenticate for step 1. Attempting to gets tokens INFO | jvm 1 | 2015/09/09 17:58:38 | Google+ Authenticate for step 1. Successfully gets tokens INFO | jvm 1 | 2015/09/09 17:58:38 | Google+ Authenticate for step 1. Found Google user ID in the ID token: 102412886277616200253 INFO | jvm 1 | 2015/09/09 17:58:38 | Google+ Authenticate for step 1. Attempting to find user by oxExternalUid: gplus: 102412886277616200253 INFO | jvm 1 | 2015/09/09 17:58:38 | 2015-09-09 17:58:38,335 DEBUG [org.xdi.oxauth.service.UserService] Getting user information from LDAP: attributeName = 'oxExt ernalUid', attributeValue = 'gplus:102412886277616200253' INFO | jvm 1 | 2015/09/09 17:58:38 | 2015-09-09 17:58:38,337 DEBUG [org.xdi.oxauth.service.UserService] Found '0' entries INFO | jvm 1 | 2015/09/09 17:58:38 | Google+ Authenticate for step 1. There is no user in LDAP. Adding user to local LDAP INFO | jvm 1 | 2015/09/09 17:58:38 | Google+ Authenticate for step 1. Attempting to gets user info INFO | jvm 1 | 2015/09/09 17:58:38 | Google+ Authenticate for step 1. Successfully gets user info INFO | jvm 1 | 2015/09/09 17:58:38 | Google+ Authenticate for step 1. Using next attributes mapping {email: uid, locale: preferredlanguage, email: mail, family_na me: sn, name: givenname, given_name: cn} INFO | jvm 1 | 2015/09/09 17:58:38 | Google+ Authenticate for step 1. Attempting to add user 102412886277616200253 with next attributes [Attribute [name=uid, val ues=[testgoogle.appsengine@wyo.gov]], Attribute [name=preferredlanguage, values=[en]], Attribute [name=mail, values=[testgoogle.appsengine@wyo.gov]], Attribute [name=s n, values=[AppsEngine]], Attribute [name=givenname, values=[TestGoogle AppsEngine]], Attribute [name=cn, values=[TestGoogle]], Attribute [name=oxExternalUid, values=[g plus:102412886277616200253]]] INFO | jvm 1 | 2015/09/09 17:58:38 | 2015-09-09 17:58:38,813 ERROR [org.xdi.oxauth.service.external.ExternalAuthenticationService] INFO | jvm 1 | 2015/09/09 17:58:38 | Traceback (most recent call last): INFO | jvm 1 | 2015/09/09 17:58:38 | File "<iostream>", line 230, in authenticate INFO | jvm 1 | 2015/09/09 17:58:38 | NameError: global name 'true' is not defined INFO | jvm 1 | 2015/09/09 17:58:38 | INFO | jvm 1 | 2015/09/09 17:58:38 | at org.python.core.Py.NameError(Py.java:284) INFO | jvm 1 | 2015/09/09 17:58:38 | at org.python.core.PyFrame.getglobal(PyFrame.java:265) INFO | jvm 1 | 2015/09/09 17:58:38 | at org.python.pycode._pyx0.authenticate$8(<iostream>:323) INFO | jvm 1 | 2015/09/09 17:58:38 | at org.python.pycode._pyx0.call_function(<iostream>) INFO | jvm 1 | 2015/09/09 17:58:38 | at org.python.core.PyTableCode.call(PyTableCode.java:167) INFO | jvm 1 | 2015/09/09 17:58:38 | at org.python.core.PyBaseCode.call(PyBaseCode.java:307) INFO | jvm 1 | 2015/09/09 17:58:38 | at org.python.core.PyBaseCode.call(PyBaseCode.java:198) INFO | jvm 1 | 2015/09/09 17:58:38 | at org.python.core.PyFunction.__call__(PyFunction.java:482) INFO | jvm 1 | 2015/09/09 17:58:38 | at org.python.core.PyMethod.instancemethod___call__(PyMethod.java:237) INFO | jvm 1 | 2015/09/09 17:58:38 | at org.python.core.PyMethod.__call__(PyMethod.java:228) INFO | jvm 1 | 2015/09/09 17:58:38 | at org.python.core.PyMethod.__call__(PyMethod.java:218) INFO | jvm 1 | 2015/09/09 17:58:38 | at org.python.core.PyMethod.__call__(PyMethod.java:213) INFO | jvm 1 | 2015/09/09 17:58:38 | at org.python.core.PyObject._jcallexc(PyObject.java:3626) INFO | jvm 1 | 2015/09/09 17:58:38 | at org.python.core.PyObject._jcall(PyObject.java:3658) INFO | jvm 1 | 2015/09/09 17:58:38 | at org.python.proxies.__main__$PersonAuthentication$0.authenticate(Unknown Source) INFO | jvm 1 | 2015/09/09 17:58:38 | at org.xdi.oxauth.service.external.ExternalAuthenticationService.executeExternalAuthenticate(ExternalAuthenticationServ ice.java:164) INFO | jvm 1 | 2015/09/09 17:58:38 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) INFO | jvm 1 | 2015/09/09 17:58:38 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) INFO | jvm 1 | 2015/09/09 17:58:38 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

By Michael Schwartz Account Admin 09 Sep 2015 at 2:29 p.m. CDT

Michael Schwartz gravatar
Please make sure you are using the latest version of the [script](https://raw.githubusercontent.com/GluuFederation/oxAuth/master/Server/integrations/gplus/GooglePlusExternalAuthenticator.py)

By Aliaksandr Samuseu staff 09 Sep 2015 at 2:33 p.m. CDT

Aliaksandr Samuseu gravatar
Hi, Noelle. What version of Gluu do you use, and what OS you have installed it into? Regards, Alex.

By Noelle Keller user 09 Sep 2015 at 2:44 p.m. CDT

Noelle Keller gravatar
Hello, Script is correct version. Glu version: Implementation-Title: oxAuth Server Implementation-Version: 2.3.3.Final Manifest-Version: 1.0 Implementation-Title: oxTrust Server Implementation-Version: 2.3.3.Final root@ltgluusaml:~# lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 14.04.3 LTS Release: 14.04 Codename: trusty

By Michael Schwartz Account Admin 09 Sep 2015 at 2:52 p.m. CDT

Michael Schwartz gravatar
In line 230, try changing `true` to `True`

By Noelle Keller user 09 Sep 2015 at 2:57 p.m. CDT

Noelle Keller gravatar
In the script?

By Noelle Keller user 09 Sep 2015 at 3:01 p.m. CDT

Noelle Keller gravatar
Aw that worked! Thank you, now on to the SAML protion

By Michael Schwartz Account Admin 09 Sep 2015 at 3:05 p.m. CDT

Michael Schwartz gravatar
weirdly, when it was True it wasn't working for me, and I changed it to 'true' ... I think its a weird issue between python | java versions...