pierre-alain-b / rainloop-nextcloud

Rainloop plugin for Nextcloud
110 stars 37 forks source link

Google integration does not work #249

Closed jiriks74 closed 2 years ago

jiriks74 commented 3 years ago

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

pierre-alain-b commented 3 years ago

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

jiriks74 commented 3 years ago

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.

pierre-alain-b commented 3 years ago

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

jiriks74 commented 3 years ago

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 commented 3 years ago

@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 commented 3 years ago

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

pierre-alain-b commented 2 years ago

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