xwikisas / application-googleapps

Google Apps Integration
0 stars 4 forks source link

Cannot login with Google anymore #50

Closed ilieandriuta closed 3 years ago

ilieandriuta commented 3 years ago

STEPS TO REPRODUCE

Tested on XWiki 12.5.1 and XWiki 11.10.8.

  1. Install Google Apps Integration (Pro) 2.4.5
  2. Update the Client ID and Secret key inside the XWiki Administration (Administer Wiki > Other > Google Apps) from the Google Project and Save
  3. Close XWiki and add the following lines in xwiki.cfg

xwiki.authentication.authclass=com.xpn.xwiki.user.impl.xwiki.GroovyAuthServiceImpl xwiki.authentication.groovy.pagename=xwiki:GoogleApps.AuthService

  1. Start XWiki
  2. Access the instance with http://apps.xwiki.com:8080
  3. Click on 'Login with Google'

EXPECTED RESULTS

The user is redirected to the Google login page.

ACTUAL RESULTS

After some loading time, 'The page isn't redirecting properly' message is returned (on Firefox 78) or 'The page isn't working right now' (on Edge 84).

GA_Page_redirecting

GA_Edge_not_working

On console, there is the following stacktrace:

20-Jul-2020 15:15:08.216 WARNING [http-nio-1115-exec-2 - http://apps.xwiki.com:1115/xwiki/bin/view/GoogleApps/OAuth?state=1998639713&code=4%2F2AF5So8CYUWGVYnTjwGLT1hQVySeoCC2ZzA52zPhySLNQNR3sIDlNb2J1v0O5_MVEAUfy4byxy_dRCpTO20KsTY&scope=email+profile+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.profile+openid+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdrive&authuser=0&prompt=none] com.google.api.client.util.store.FileDataStoreFactory.setPermissionsToOwnerOnly unable to change permissions for everybody: C:\ILIE LUCRU\TOMCAT_HOME 9.0.36 - 12.5.1 PostgreSQL\work\Catalina\localhost\xwiki\googleapps
20-Jul-2020 15:15:08.218 WARNING [http-nio-1115-exec-2 - http://apps.xwiki.com:1115/xwiki/bin/view/GoogleApps/OAuth?state=1998639713&code=4%2F2AF5So8CYUWGVYnTjwGLT1hQVySeoCC2ZzA52zPhySLNQNR3sIDlNb2J1v0O5_MVEAUfy4byxy_dRCpTO20KsTY&scope=email+profile+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.profile+openid+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdrive&authuser=0&prompt=none] com.google.api.client.util.store.FileDataStoreFactory.setPermissionsToOwnerOnly unable to change permissions for owner: C:\ILIE LUCRU\TOMCAT_HOME 9.0.36 - 12.5.1 PostgreSQL\work\Catalina\localhost\xwiki\googleapps
GOOGLEAPPS: SCOPE config: drive avatar.
GOOGLEAPPS: APPNAME: xwiki
GOOGLEAPPS: CLIENTID: 1004246409676-inldv8a6ot231f6lm03clmh2i5l4d3qa.apps.googleusercontent.com
GOOGLEAPPS: SCOPE: [https://www.googleapis.com/auth/userinfo.email, https://www.googleapis.com/auth/userinfo.profile, https://www.googleapis.com/auth/drive]
GOOGLEAPPS: In authorize
GOOGLEAPPS: Trying to get credentials from authorization code: 4/2AF5So8CYUWGVYnTjwGLT1hQVySeoCC2ZzA52zPhySLNQNR3sIDlNb2J1v0O5_MVEAUfy4byxy_dRCpTO20KsTY
GOOGLEAPPS: Token: [access_token:ya29.a0AfH6SMAkf9cvxUiCYL67a4CHJxvNwijL7i-rCC0bqCutH2R0Ohq2PhljlvJPxdOO2YumEPa4hCHGgyM-Ya9C7MR1CwLuplRlJPWnVPzRjzKjm4_n_FGkrdhwYuxjmeh2GDAtRhgWqtXBtiayEc1i_Dw9-No1yN6NRPFZZQ, expires_in:3599, id_token:eyJhbGciOiJSUzI1NiIsImtpZCI6IjRlNGViZTQ4N2Q1Y2RmMmIwMjZhM2IyMjlkODZmMGQ0MjU4NDQ5ZmUiLCJ0eXAiOiJKV1QifQ.eyJpc3MiOiJhY2NvdW50cy5nb29nbGUuY29tIiwiYXpwIjoiMTAwNDI0NjQwOTY3Ni1pbmxkdjhhNm90MjMxZjZsbTAzY2xtaDJpNWw0ZDNxYS5hcHBzLmdvb2dsZXVzZXJjb250ZW50LmNvbSIsImF1ZCI6IjEwMDQyNDY0MDk2NzYtaW5sZHY4YTZvdDIzMWY2bG0wM2NsbWgyaTVsNGQzcWEuYXBwcy5nb29nbGV1c2VyY29udGVudC5jb20iLCJzdWIiOiIxMDM2ODc2MTU0MTUwMTU4ODg1MDgiLCJlbWFpbCI6InVzZXIxeHdpa2lAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImF0X2hhc2giOiJ1eHU3blRGZVI3RlB2V3JKODN6aFR3IiwiaWF0IjoxNTk1MjQ3MzA4LCJleHAiOjE1OTUyNTA5MDh9.hEUbwsMogGmyiUZGfDyMeFpiB64YlgUjOlF5TdhnHppuZc34JwElFGtv_wg56Trgcl8j_XTahXLwZ6bkAnYQXPa9QeNjCvzhuudcvKjncE2sNMYd3Q9lvlkmK5otqiflsqStSdQlwl00Z5fcYWv6nkYeoxJP0t5-1TpdDKPWZ5fTCPbvCaA1QO0aHQHhkOIa1LkX9h7JveeMHUCdSr5ke5Dx3YCU_FCowEiZkknHtfXkY62iLuIGbogm7nbFePPN2HeUXZBK4HEAHsATNnPUhA_oAuPAs43xK5VEE0JgG594eKDjjMj7BpYXt6xMm1odwukTZUmVDzLUyb8VOGEEWg, scope:openid https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/drive, token_type:Bearer]
GOOGLEAPPS: Failure to create refresh token
GOOGLEAPPS: Storing credentials for user XWiki.XWikiGuest-2078778565
GOOGLEAPPS: Got credentials: com.google.api.client.auth.oauth2.Credential@3c0321b2
GOOGLEAPPS: Redirecting to final destination after authorization: http://apps.xwiki.com:1115/xwiki/bin/view/GoogleApps/Login??xredirect=%2Fxwiki%2Fbin%2Fview%2FMain%2F
20-Jul-2020 15:15:08.708 WARNING [http-nio-1115-exec-1 - http://apps.xwiki.com:1115/xwiki/bin/view/GoogleApps/Login??xredirect=%2Fxwiki%2Fbin%2Fview%2FMain%2F] com.google.api.client.util.store.FileDataStoreFactory.setPermissionsToOwnerOnly unable to change permissions for everybody: C:\ILIE LUCRU\TOMCAT_HOME 9.0.36 - 12.5.1 PostgreSQL\work\Catalina\localhost\xwiki\googleapps
20-Jul-2020 15:15:08.709 WARNING [http-nio-1115-exec-1 - http://apps.xwiki.com:1115/xwiki/bin/view/GoogleApps/Login??xredirect=%2Fxwiki%2Fbin%2Fview%2FMain%2F] com.google.api.client.util.store.FileDataStoreFactory.setPermissionsToOwnerOnly unable to change permissions for owner: C:\ILIE LUCRU\TOMCAT_HOME 9.0.36 - 12.5.1 PostgreSQL\work\Catalina\localhost\xwiki\googleapps
GOOGLEAPPS: SCOPE config: drive avatar.
GOOGLEAPPS: APPNAME: xwiki
GOOGLEAPPS: CLIENTID: 1004246409676-inldv8a6ot231f6lm03clmh2i5l4d3qa.apps.googleusercontent.com
GOOGLEAPPS: SCOPE: [https://www.googleapis.com/auth/userinfo.email, https://www.googleapis.com/auth/userinfo.profile, https://www.googleapis.com/auth/drive]
GOOGLEAPPS: In authorize
GOOGLEAPPS: No credentials found. Checking stored credentials for user XWiki.XWikiGuest
GOOGLEAPPS: Getting credentials for user XWiki.XWikiGuest-523977671
GOOGLEAPPS: Could not find stored credentials
GOOGLEAPPS: No credentials retrieved.
GOOGLEAPPS: Redirecting to authorization URL.
2020-07-20 15:15:08,741 [http-nio-1115-exec-1 - http://apps.xwiki.com:1115/xwiki/bin/view/GoogleApps/Login??xredirect=%2Fxwiki%2Fbin%2Fview%2FMain%2F] INFO  nticationPersistenceStoreTools - retrieve cookie XWIKITRUSTEDAUTH
GOOGLEAPPS: google authentication url : https://accounts.google.com/o/oauth2/auth?access_type=offline&approval_prompt=auto&client_id=1004246409676-inldv8a6ot231f6lm03clmh2i5l4d3qa.apps.googleusercontent.com&redirect_uri=http://apps.xwiki.com:1115/xwiki/bin/view/GoogleApps/OAuth&response_type=code&scope=https://www.googleapis.com/auth/userinfo.email%20https://www.googleapis.com/auth/userinfo.profile%20https://www.googleapis.com/auth/drive&state=1998639713
GOOGLEAPPS: Got credentials: null`

Sometimes, after clearing cache several times or login in an incognito window, the user is directed to:

Google_Apps_Authentication_No_login

but the login isn't successful.

Environment: Windows 10 Pro 64bit, Firefox 78, using a local instance of XWiki 12.5.1 on PostgreSQL 12, Tomcat 9.0.36

acotiuga commented 3 years ago

@ilieandriuta:In the Steps to reproduce section, there is no. 5: Access the instance with http://apps.xwiki.com:8080 and the image captures http://apps.xwiki.com:1115. Any idea about the different port?

ilieandriuta commented 3 years ago

@acotiuga The port is not a problem as it's added on my https://console.developers.google.com/apis/credentials > Authorized redirect URIs: http://apps.xwiki.com:1115/xwiki/bin/view/GoogleApps/OAuth. In my case I'm running the Tomcat server on a different port than 8080 because this port is being used by the local Oracle DB and thus, not available. Moreover, Gabriela tested on her instance (she uses 8080 port, which is added on her project's Authorized redirect URIs) and she got the same result. Thanks!

polx commented 3 years ago

I can try to look deeper at it later but this is very old and crappy problem. If you ask Thomas, and thus far the only serious possibility, is to make sure that all proxy information is reaching the tomcat or jetty: all x-forwarded headers should come. Considering that this is an eternal trap, I think it will be wise to use a more browser-based solution, where JavaScript transmits at login time to the server how the client is addressing the server, than use the default solution provided by xwiki (which relies on somewhat unpredictable tomcat features).

polx commented 3 years ago

@ilieandriuta could you comment if you think we can change the virtual-host configuration of this installation?

polx commented 3 years ago

I could reproduce and it seems that the problem may be in a change on the google side... At least there's no difference between this setup and mine.

There is no inconsistency between the ports but the merged result of testing at two people (one using 8080, one using 1115). No firewall, proxy or ....

paul

ilieandriuta commented 3 years ago

Indeed, I have also reproduced the issue on port 8080 eventually.

polx commented 3 years ago

Hello @ilieandriuta , if you have a setup ready, it would be cool to try my commit. Copy and groovy code here (make sure there is no line number or so) and paste it as an admin into /xwiki/bin/edit/GoogleApps/Groovy?editor=wiki&force=1 . Having done that, tests to login with Google should work again.

thanks in advance. paul

ilieandriuta commented 3 years ago

Hi! I managed to replace the groovy code into /xwiki/bin/view/GoogleApps/Groovy page, but it seems the login still isn't successful. When I start the instance and click 'Login with Google' I get the following stacktrace in console:

iul. 29, 2020 12:49:15 P.M. com.google.api.client.util.store.FileDataStoreFactory setPermissionsToOwnerOnly
WARNING: unable to change permissions for everybody: C:\ILIE LUCRU\XWIKI 12.5.1\xwiki-platform-distribution-flavor-jetty-hsqldb-12.5.1 STD with GA\data\googleapps
iul. 29, 2020 12:49:15 P.M. com.google.api.client.util.store.FileDataStoreFactory setPermissionsToOwnerOnly
WARNING: unable to change permissions for owner: C:\ILIE LUCRU\XWIKI 12.5.1\xwiki-platform-distribution-flavor-jetty-hsqldb-12.5.1 STD with GA\data\googleapps
GOOGLEAPPS: APPNAME: xwiki
GOOGLEAPPS: CLIENTID: 1004246409676-inldv8a6ot231f6lm03clmh2i5l4d3qa.apps.googleusercontent.com
GOOGLEAPPS: SCOPE: [https://www.googleapis.com/auth/userinfo.email, https://www.googleapis.com/auth/userinfo.profile, https://www.googleapis.com/auth/drive]
GOOGLEAPPS: Updating User
GOOGLEAPPS: In authorize
GOOGLEAPPS: No credentials found. Checking stored credentials for user XWiki.XWikiGuest
GOOGLEAPPS: Getting credentials for user XWiki.XWikiGuest-node0uafd4507y7eh1maylsoc68gl40
GOOGLEAPPS: Could not find stored credentials
GOOGLEAPPS: No credentials retrieved.
GOOGLEAPPS: Redirecting to authorization URL.
2020-07-29 12:49:16,084 [qtp1671846437-20 - http://apps.xwiki.com:1115/xwiki/bin/view/GoogleApps/Login??xredirect=%2Fxwiki%2Fbin%2Fview%2FMain%2F] INFO  nticationPersistenceStoreTools - retrieve cookie XWIKITRUSTEDAUTH
GOOGLEAPPS: google authentication url : https://accounts.google.com/o/oauth2/auth?access_type=offline&approval_prompt=auto&client_id=1004246409676-inldv8a6ot231f6lm03clmh2i5l4d3qa.apps.googleusercontent.com&redirect_uri=http://apps.xwiki.com:1115/xwiki/bin/view/GoogleApps/OAuth&response_type=code&scope=https://www.googleapis.com/auth/userinfo.email%20https://www.googleapis.com/auth/userinfo.profile%20https://www.googleapis.com/auth/drive&state=1998639713
GOOGLEAPPS: Got credentials: null
GOOGLEAPPS: Error when pulling user information: com.google.api.client.googleapis.json.GoogleJsonResponseException: 403 Forbidden
{
  "code" : 403,
  "errors" : [ {
    "domain" : "global",
    "message" : "The request is missing a valid API key.",
    "reason" : "forbidden"
  } ],
  "message" : "The request is missing a valid API key.",
  "status" : "PERMISSION_DENIED"
}.
com.google.api.client.googleapis.json.GoogleJsonResponseException: 403 Forbidden
{
  "code" : 403,
  "errors" : [ {
    "domain" : "global",
    "message" : "The request is missing a valid API key.",
    "reason" : "forbidden"
  } ],
  "message" : "The request is missing a valid API key.",
  "status" : "PERMISSION_DENIED"
}
        at com.google.api.client.googleapis.json.GoogleJsonResponseException.from(GoogleJsonResponseException.java:146)
        at com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:113)
        at com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:40)
        at com.google.api.client.googleapis.services.AbstractGoogleClientRequest$1.interceptResponse(AbstractGoogleClientRequest.java:321)
        at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:1065)
        at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:419)
        at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:352)
        at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute(AbstractGoogleClientRequest.java:469)
        at com.google.api.client.googleapis.services.AbstractGoogleClientRequest$execute.call(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:115)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:119)
        at GoogleAppsGroovy.updateUser(script159601615418870590106.groovy:345)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:565)
        at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:548)
        at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:219)
        at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:369)
        at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:701)
        at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:72)
        at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:240)
        at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:423)
        at org.apache.velocity.Template.merge(Template.java:358)
        at org.apache.velocity.Template.merge(Template.java:262)
        at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:281)
        at com.xpn.xwiki.render.DefaultVelocityManager.evaluate(DefaultVelocityManager.java:316)
        at org.xwiki.rendering.internal.macro.velocity.VelocityMacro.evaluateString(VelocityMacro.java:131)
        at org.xwiki.rendering.internal.macro.velocity.VelocityMacro.evaluateString(VelocityMacro.java:52)
        at org.xwiki.rendering.macro.script.AbstractScriptMacro.evaluateBlock(AbstractScriptMacro.java:286)
        at org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:182)
        at org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:58)
        at org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transform(MacroTransformation.java:297)
        at org.xwiki.rendering.internal.transformation.DefaultRenderingContext.transformInContext(DefaultRenderingContext.java:183)
        at org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:101)
        at org.xwiki.display.internal.DocumentContentAsyncExecutor.executeInCurrentExecutionContext(DocumentContentAsyncExecutor.java:348)
        at org.xwiki.display.internal.DocumentContentAsyncExecutor.execute(DocumentContentAsyncExecutor.java:221)
        at org.xwiki.display.internal.DocumentContentAsyncRenderer.execute(DocumentContentAsyncRenderer.java:107)
        at org.xwiki.rendering.async.internal.block.AbstractBlockAsyncRenderer.render(AbstractBlockAsyncRenderer.java:157)
        at org.xwiki.rendering.async.internal.block.AbstractBlockAsyncRenderer.render(AbstractBlockAsyncRenderer.java:54)
        at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.syncRender(DefaultAsyncRendererExecutor.java:273)
        at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.render(DefaultAsyncRendererExecutor.java:250)
        at org.xwiki.rendering.async.internal.block.DefaultBlockAsyncRendererExecutor.execute(DefaultBlockAsyncRendererExecutor.java:125)
        at org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:67)
        at org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:43)
        at org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:96)
        at org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:39)
        at org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:123)
        at org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:52)
        at org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:68)
        at org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:42)
        at com.xpn.xwiki.doc.XWikiDocument.display(XWikiDocument.java:1215)
        at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:1356)
        at com.xpn.xwiki.doc.XWikiDocument.displayDocument(XWikiDocument.java:1305)
        at com.xpn.xwiki.doc.XWikiDocument.displayDocument(XWikiDocument.java:1272)
        at com.xpn.xwiki.api.Document.displayDocument(Document.java:786)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:565)
        at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:548)
        at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:219)
        at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:369)
        at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:701)
        at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:72)
        at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:240)
        at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:144)
        at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:423)
        at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:191)
        at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:144)
        at org.xwiki.velocity.internal.directive.TryCatchDirective.render(TryCatchDirective.java:86)
        at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:301)
        at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:423)
        at org.apache.velocity.Template.merge(Template.java:358)
        at org.apache.velocity.Template.merge(Template.java:262)
        at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:281)
        at com.xpn.xwiki.render.DefaultVelocityManager.evaluate(DefaultVelocityManager.java:316)
        at com.xpn.xwiki.internal.template.VelocityTemplateEvaluator.evaluateContent(VelocityTemplateEvaluator.java:95)
        at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.evaluateContent(TemplateAsyncRenderer.java:217)
        at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.renderVelocity(TemplateAsyncRenderer.java:180)
        at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.render(TemplateAsyncRenderer.java:137)
        at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.render(TemplateAsyncRenderer.java:53)
        at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.lambda$syncRender$0(DefaultAsyncRendererExecutor.java:267)
        at com.xpn.xwiki.internal.security.authorization.DefaultAuthorExecutor.call(DefaultAuthorExecutor.java:98)
        at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.syncRender(DefaultAsyncRendererExecutor.java:267)
        at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.render(DefaultAsyncRendererExecutor.java:250)
        at org.xwiki.rendering.async.internal.block.DefaultBlockAsyncRendererExecutor.render(DefaultBlockAsyncRendererExecutor.java:154)
        at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:772)
        at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:745)
        at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:725)
        at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:711)
        at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:78)
        at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:2505)
        at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:2483)
        at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:983)
        at jdk.internal.reflect.GeneratedMethodAccessor192.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:565)
        at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:548)
        at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:219)
        at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:369)
        at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:490)
        at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:144)
        at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:215)
        at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:328)
        at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:258)
        at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:301)
        at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:423)
        at org.apache.velocity.Template.merge(Template.java:358)
        at org.apache.velocity.Template.merge(Template.java:262)
        at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:281)
        at com.xpn.xwiki.render.DefaultVelocityManager.evaluate(DefaultVelocityManager.java:316)
        at com.xpn.xwiki.internal.template.VelocityTemplateEvaluator.evaluateContent(VelocityTemplateEvaluator.java:95)
        at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.evaluateContent(TemplateAsyncRenderer.java:217)
        at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.renderVelocity(TemplateAsyncRenderer.java:180)
        at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.render(TemplateAsyncRenderer.java:137)
        at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.render(TemplateAsyncRenderer.java:53)
        at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.lambda$syncRender$0(DefaultAsyncRendererExecutor.java:267)
        at com.xpn.xwiki.internal.security.authorization.DefaultAuthorExecutor.call(DefaultAuthorExecutor.java:98)
        at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.syncRender(DefaultAsyncRendererExecutor.java:267)
        at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.render(DefaultAsyncRendererExecutor.java:250)
        at org.xwiki.rendering.async.internal.block.DefaultBlockAsyncRendererExecutor.render(DefaultBlockAsyncRendererExecutor.java:154)
        at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:772)
        at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:745)
        at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:725)
        at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:711)
        at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:78)
        at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:2505)
        at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:2483)
        at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:983)
        at jdk.internal.reflect.GeneratedMethodAccessor192.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:565)
        at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:548)
        at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:219)
        at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:369)
        at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:490)
        at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:144)
        at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:215)
        at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:328)
        at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:258)
        at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:301)
        at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:144)
        at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:172)
        at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:144)
        at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:423)
        at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:191)
        at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:423)
        at org.apache.velocity.Template.merge(Template.java:358)
        at org.apache.velocity.Template.merge(Template.java:262)
        at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:281)
        at com.xpn.xwiki.render.DefaultVelocityManager.evaluate(DefaultVelocityManager.java:316)
        at com.xpn.xwiki.internal.template.VelocityTemplateEvaluator.evaluateContent(VelocityTemplateEvaluator.java:95)
        at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.evaluateContent(TemplateAsyncRenderer.java:217)
        at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.renderVelocity(TemplateAsyncRenderer.java:180)
        at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.render(TemplateAsyncRenderer.java:137)
        at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.render(TemplateAsyncRenderer.java:53)
        at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.lambda$syncRender$0(DefaultAsyncRendererExecutor.java:267)
        at com.xpn.xwiki.internal.security.authorization.DefaultAuthorExecutor.call(DefaultAuthorExecutor.java:98)
        at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.syncRender(DefaultAsyncRendererExecutor.java:267)
        at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.render(DefaultAsyncRendererExecutor.java:250)
        at org.xwiki.rendering.async.internal.block.DefaultBlockAsyncRendererExecutor.render(DefaultBlockAsyncRendererExecutor.java:154)
        at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:772)
        at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:745)
        at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:725)
        at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:711)
        at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:78)
        at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:2505)
        at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:179)
        at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:576)
        at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:250)
        at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)
        at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)
        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
        at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
        at org.eclipse.jetty.servlet.ServletHolder$NotAsyncServlet.service(ServletHolder.java:1411)
        at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:763)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1631)
        at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:122)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1618)
        at org.xwiki.wysiwyg.filter.ConversionFilter.doFilter(ConversionFilter.java:109)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1618)
        at org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1618)
        at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1618)
        at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1618)
        at org.xwiki.resource.servlet.RoutingFilter.doFilter(RoutingFilter.java:132)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610)
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:549)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
        at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:602)
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
        at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235)
        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1610)
        at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1369)
        at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:489)
        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1580)
        at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1284)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
        at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:221)
        at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:146)
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
        at org.eclipse.jetty.server.Server.handle(Server.java:501)
        at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:383)
        at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:556)
        at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:375)
        at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:273)
        at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)
        at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)
        at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104)
        at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:336)
        at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:313)
        at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:171)
        at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:129)
        at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:375)
        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:806)
        at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:938)
        at java.base/java.lang.Thread.run(Thread.java:834)

The Google login box is however, displayed. After I fill the credentials for a Google user and try to login I get:

iul. 29, 2020 12:51:08 P.M. com.google.api.client.util.store.FileDataStoreFactory setPermissionsToOwnerOnly
WARNING: unable to change permissions for everybody: C:\ILIE LUCRU\XWIKI 12.5.1\xwiki-platform-distribution-flavor-jetty-hsqldb-12.5.1 STD with GA\data\googleapps
iul. 29, 2020 12:51:08 P.M. com.google.api.client.util.store.FileDataStoreFactory setPermissionsToOwnerOnly
WARNING: unable to change permissions for owner: C:\ILIE LUCRU\XWIKI 12.5.1\xwiki-platform-distribution-flavor-jetty-hsqldb-12.5.1 STD with GA\data\googleapps
GOOGLEAPPS: APPNAME: xwiki
GOOGLEAPPS: CLIENTID: 1004246409676-inldv8a6ot231f6lm03clmh2i5l4d3qa.apps.googleusercontent.com
GOOGLEAPPS: SCOPE: [https://www.googleapis.com/auth/userinfo.email, https://www.googleapis.com/auth/userinfo.profile, https://www.googleapis.com/auth/drive]
GOOGLEAPPS: In authorize
GOOGLEAPPS: Trying to get credentials from authorization code: 4/2gGw3Swr_eYSxr2uMZwCoA0ToVOg1DzYBmm99H5eGE6D3wZpcb_XJ4BVC0fTmnQ9W04EMjlgepE8T0U2uIPvpB8
GOOGLEAPPS: Token: [access_token:ya29.a0AfH6SMDmmZPKIX90G3_xFJCpH-xBNfvnznQwAaOpMpoySVHct5JNOdECX7IiFCbpS38_LTbmHGhu9DMgMS6RAGbFtC9QjmKwtHqRHJK5dOYZVttmGLplSGUHACIb-zkOvQSanB9KOKQTpgGeMHLtCr8by0doBEt79VU, expires_in:3599, id_token:eyJhbGciOiJSUzI1NiIsImtpZCI6ImI2M2VlMGJlMDkzZDliYzMxMmQ5NThjOTk2NmQyMWYwYzhmNmJiYmIiLCJ0eXAiOiJKV1QifQ.eyJpc3MiOiJhY2NvdW50cy5nb29nbGUuY29tIiwiYXpwIjoiMTAwNDI0NjQwOTY3Ni1pbmxkdjhhNm90MjMxZjZsbTAzY2xtaDJpNWw0ZDNxYS5hcHBzLmdvb2dsZXVzZXJjb250ZW50LmNvbSIsImF1ZCI6IjEwMDQyNDY0MDk2NzYtaW5sZHY4YTZvdDIzMWY2bG0wM2NsbWgyaTVsNGQzcWEuYXBwcy5nb29nbGV1c2VyY29udGVudC5jb20iLCJzdWIiOiIxMTIzMTcxNDE4MDI0MTE2NTI0MjQiLCJlbWFpbCI6InVzZXIyeHdpa2lAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImF0X2hhc2giOiJIcUhja2w3Vmp4S290MHRRNG0zRWZ3IiwiaWF0IjoxNTk2MDE2MjY5LCJleHAiOjE1OTYwMTk4Njl9.58sP-qp0WY2j3Qa4M-pj5tdABL9AGx5bM_dztUummWNjwBnOyV0-2mlhhGa43NDoleV_ON04T6XAA0EvkKyohOGfRZbStpQDR0X1l_cOkDR0iruIP9C0zsN2RhD50LrEDfo_mIXuWOwIYhK7NSV0jazweq9UadgY_69Ybq6o4EQoHVmP5DE88fiQ2M9CtdRCaLf5ZQ_iHKsV6is9cbddvJm2a2KE0W20JbEIzxZZxb3RWk0z6ZvquhyTfT3LuZk2eWwSkJI6SeFxcfaHvyiPr10MHXDa5n0_Mzgqi6Pd3SpU8kklrZbfOzW4eHIIBOrIxhHDXwkVKfU4yv4u35IZ8g, refresh_token:1//09QatikKbJdRHCgYIARAAGAkSNwF-L9Ir6JacIuBCnijnuDqsl4L3H0SH5n3fuk1JdPC7VS5P25dWLe3cjgS1aZuUJFFGc0Th_ZQ, scope:https://www.googleapis.com/auth/drive openid https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email, token_type:Bearer]
GOOGLEAPPS: Refresh token has been created: 1//09QatikKbJdRHCgYIARAAGAkSNwF-L9Ir6JacIuBCnijnuDqsl4L3H0SH5n3fuk1JdPC7VS5P25dWLe3cjgS1aZuUJFFGc0Th_ZQ
GOOGLEAPPS: Storing credentials for user XWiki.XWikiGuest-node0uafd4507y7eh1maylsoc68gl40
GOOGLEAPPS: Got credentials: com.google.api.client.auth.oauth2.Credential@65083408
GOOGLEAPPS: Redirecting to final destination after authorization: http://apps.xwiki.com:1115/xwiki/bin/view/GoogleApps/Login??xredirect=%2Fxwiki%2Fbin%2Fview%2FMain%2F
iul. 29, 2020 12:51:09 P.M. com.google.api.client.util.store.FileDataStoreFactory setPermissionsToOwnerOnly
WARNING: unable to change permissions for everybody: C:\ILIE LUCRU\XWIKI 12.5.1\xwiki-platform-distribution-flavor-jetty-hsqldb-12.5.1 STD with GA\data\googleapps
iul. 29, 2020 12:51:09 P.M. com.google.api.client.util.store.FileDataStoreFactory setPermissionsToOwnerOnly
WARNING: unable to change permissions for owner: C:\ILIE LUCRU\XWIKI 12.5.1\xwiki-platform-distribution-flavor-jetty-hsqldb-12.5.1 STD with GA\data\googleapps
GOOGLEAPPS: APPNAME: xwiki
GOOGLEAPPS: CLIENTID: 1004246409676-inldv8a6ot231f6lm03clmh2i5l4d3qa.apps.googleusercontent.com
GOOGLEAPPS: SCOPE: [https://www.googleapis.com/auth/userinfo.email, https://www.googleapis.com/auth/userinfo.profile, https://www.googleapis.com/auth/drive]
GOOGLEAPPS: Updating User
GOOGLEAPPS: In authorize
GOOGLEAPPS: No credentials found. Checking stored credentials for user XWiki.XWikiGuest
GOOGLEAPPS: Getting credentials for user XWiki.XWikiGuest-node0uafd4507y7eh1maylsoc68gl40
GOOGLEAPPS: Retrieved stored credentials
GOOGLEAPPS: Got credentials: com.google.api.client.auth.oauth2.Credential@65083408
GOOGLEAPPS: user: [emailAddresses:[[metadata:[primary:true, source:[id:112317141802411652424, type:ACCOUNT], verified:true], value:user2xwiki@gmail.com]], etag:%EggBAj0DCT43LhoEAQIFBw==, names:[[displayName:User 2, displayNameLastFirst:2, User, familyName:2, givenName:User, metadata:[primary:true, source:[id:112317141802411652424, type:PROFILE]], unstructuredName:User 2]], photos:[[default:true, metadata:[primary:true, source:[id:112317141802411652424, type:PROFILE]], url:https://lh4.googleusercontent.com/-nGLba_zO450/AAAAAAAAAAI/AAAAAAAAAAA/AMZuucl11aOuS5jox9tFeJYL9KALypC5Bg/s100/photo.jpg]], resourceName:people/112317141802411652424]
GOOGLEAPPS: Creating user user2xwiki
GOOGLEAPPS: Adding avatar https://lh4.googleusercontent.com/-nGLba_zO450/AAAAAAAAAAI/AAAAAAAAAAA/AMZuucl11aOuS5jox9tFeJYL9KALypC5Bg/s100/photo.jpg
2020-07-29 12:51:10,592 [qtp1671846437-82 - http://apps.xwiki.com:1115/xwiki/bin/view/GoogleApps/Login??xredirect=%2Fxwiki%2Fbin%2Fview%2FMain%2F] INFO  nticationPersistenceStoreTools - text to encrypt : XWiki.user2xwiki
2020-07-29 12:51:10,620 [qtp1671846437-82 - http://apps.xwiki.com:1115/xwiki/bin/view/GoogleApps/Login??xredirect=%2Fxwiki%2Fbin%2Fview%2FMain%2F] INFO  nticationPersistenceStoreTools - encrypted text : sphqiF8HxsptEXPCvqdiM0YdiS2jDNy4
GOOGLEAPPS: Store cookie for user XWiki.user2xwiki
GOOGLEAPPS: Storing credentials for user XWiki.user2xwiki

and it lands on Main.WebHome page, without the user being logged in. I mention that I have an existing API key registered on my Google project and I cleared all cookies on the browser.

polx commented 3 years ago

This is pretty strange. The log says that you are logged in and the user user2xwiki has been created. Can it be something got wrong with some cookies? Thanks in advance. Paul

polx commented 3 years ago

I believe it is solved and thus close the issue. Please re-open if this fails for you.

ilieandriuta commented 3 years ago

I've tested with Google Apps Integration Pro 2.4.7 on XWiki 12.6 (w Edge 84 and Firefox 79/ HSQLDB/ Jetty) and the issue does not reproduce anymore.