Hello, I try to use Google Apps Integration (Pro) trial, i installed it and made steps from instructions on official page. Except 1 step, i use application on localhost and can’t use internal group in google api. When i finish setting process and try autorizate i see infinitive loop. I try to login in google, i grant permissions and after i redirect to google login page again, not to Xwiki. Anybody know what is the problem?
Hi, @urs19work !
I recently tested the Google Apps Integration (Pro) with a local wiki, localhost, and indeed, in the documentation there are described use cases where with either a localhost, or a hosted wiki, the option Internal for the User Type on the Google OAuth consent screen was chosen (as described on Step 4 on the official installation page or step 4 in this article).
Could you tell me what XWiki version you have so I can run some tests on the same local version? What type of XWiki installation do you have?
Thanks!
Andreea
Hi again.
Have you tried to add an alias to your local wiki?
From the documentation:
“You could then use an alias, for example apps.xwiki.com instead of localhost . Depending on your OS you will need to also update the hosts file to which you should add the following IP/Alias pair: your IP your Application Homepage link (e.g. 127.0.0.1 apps.xwiki.com). The Application Homepage link would look like http://apps.xwiki.com:8080/xwiki/bin/Main/ and the Application privacy policy link *http://apps.xwiki.com:8080/xwiki/bin/view/Help/*.”
Then on the Authorized redirect URI from the OAuth created credentials, it would look like http://apps.xwiki.com:8080/xwiki/bin/view/GoogleApps/OAuth
Also, note that if you have purchased a license in the meantime, you can contact support@xwiki.com to get support with the app Google Apps Integration (Pro).
Looking forward to your confirmation.
Andreea
thank you so much, i’ll try this solution later
Hey @urs19work , sorry for the slow response,
can you document what is sitting in the front of localhost? Is there a nginx or apache?
The Google Cloud is rather picky with localhost (or even intolerant as it shows http) and I strongly recommend against it.
I haven’t met the infinite loop except in broken development situations; can you detail which URLs you are following within the loop? It is normal for the Google cloud to come back to the URL of your wiki with the authorization but I understand that is failing and coming back.
paul