rainloop-nextcloud icon indicating copy to clipboard operation
rainloop-nextcloud copied to clipboard

Google integration does not work

Open jiriks74 opened this issue 4 years ago • 6 comments

Hi, I tried to integrate my rainloop with gmail. If I use the urls that are in the integration settings I get redirected to nextcloud dashboard not to rainloop. If I manually modify the url to one that is the nextcloud/index.php/apps/rainloop/?SocialGoogle it's just stuck at the loading animation.

I'm probably setting it up wrong, but I couldn't find any information about setting it up with nextcloud rainloop client on the internet.

Can you help? Thanks

jiriks74 avatar Sep 20 '21 06:09 jiriks74

I am not sure I understand what you have tried. Could you give more details please?

pierre-alain-b avatar Sep 20 '21 06:09 pierre-alain-b

I tried to setup google integration according to the official guide. So if you run rainloop normally you're supposed to authorized redirect url like http://domain.com/?SocialGoogle (as in guide).

But if you do nextcloud.example.com/?SocialGoogle you logically get redirected to nextcloud dashboard once you log in with google. So I tried https://nextcloud.example.com/index.php/apps/rainloop/app/?SocialGoogle but that gives me an error that I have wrong redirect url: https://nextcloud.exampla.com/?SocialGoogle and we know what that one does.

So one does not work and the other redirects me to the dashborad.

jiriks74 avatar Sep 20 '21 08:09 jiriks74

When integrated into nextcloud, I am not sure this integration can work.

pierre-alain-b avatar Sep 20 '21 08:09 pierre-alain-b

Would it be possible to set the redirect url to somethin else in the nextcloud version? If you access https://nextcloud.example.com/index.php/apps/rainloop/app/?SocialGoogle it redirects you to the login and everything looks working. It looks like there's something that is made to take the base url (rainloop.example.com - in this case nextcloud.example.com) and do just /?SocialGoogle. If that's the case, changing it to /index.php/apps/rainloop/app/?SocialGoogle would probably easily resolve the issue. But idk how rainloop works internally.

jiriks74 avatar Sep 20 '21 08:09 jiriks74

@pierre-alain-b I don't know php, but I found something related to social in /app/rainloop/v/1.15..0/app/libraries/Rainloop/Social.php on line 229. Maybe that could be it?

jiriks74 avatar Sep 20 '21 08:09 jiriks74

Changing the line from index.php/apps/rainloop/app/?SocialGoogle to index.php/apps/rainloop/app/?SocialGoogle redirects me to the correct site (with the big g with loading animation) but it's stuck there

jiriks74 avatar Sep 20 '21 13:09 jiriks74

I suggest that you look at the work here on Snappymail: https://github.com/the-djmaze/snappymail/issues/96

pierre-alain-b avatar Oct 14 '22 04:10 pierre-alain-b