nextcloud / integration_discourse

🗨️ Discourse integration into Nextcloud
https://apps.nextcloud.com/apps/integration_discourse
GNU Affero General Public License v3.0
15 stars 3 forks source link

integration not working on my installation #18

Open wokawoka opened 3 years ago

wokawoka commented 3 years ago

Hello friends, I'm facing a problem with this integration: I've added my discourse installation address (live and working) to the "connected accounts" in the nextcloud settings, just after adding "web+nextclouddiscourse://auth-redirect" in the "allowed_user_api_auth_redirects" field on discourse options. The connection somehow worked , even if I read "Connected as" without the relative username, see screenshot:

Screenshot_20210723_110717

The integration seems not to be working here and the discourse widget on the dashboard shows an error. See screenshot:

Screenshot_20210723_111212

I know this isn't a support forum, but there might be other people experimenting the same problem. Do you guys have an idea about how to solve the problem? Does maybe the fact that on my installation discourse is managing authenticatications through discourse SSO on nextcloud (this works perfectly)? I'm running Nextcloud version 21.0.3 , an updated version (yesterday) of discourse, and all the nextcloud plug-ins are updated. Any suggestion? Being able to integrate discourse would be a must for the group I'm managing nextcloud for... Thank you!

wokawoka commented 3 years ago

I suspect that the problem is linked to the fact that I authenticate users on discourse through discoursesso/discourseconnect on nextcloud https://apps.nextcloud.com/apps/discoursesso https://github.com/soudis/discoursesso/blob/master/README.md https://meta.discourse.org/t/discourseconnect-official-single-sign-on-for-discourse-sso/13045

is anybody running the same SSO setup and at the same time is being able to have the nextcloud/discourse dashboard/search integration working?

wokawoka commented 3 years ago

I disable discoursesso and activated normal email login only and I still get the same issue with no "Connected as" and no username. Do you guys have an idea about which log should I look for? Thank you!

wokawoka commented 3 years ago

Nextcloud-discourse integration works on my nextcloud instance with the official nextcloud discourse forum though (https://help.nextcloud.com) , that means that the problem should be on my discourse instance. I'm running it behind nginx proxy manager, could this be the real problem, maybe? (but other than with this integration it looks like it's working correctly for the moment)

Ethanol6 commented 2 years ago

I'm using Nextcloud 23 snap on Ubuntu Server 22.04. Integration does not work here either. help.nextcloud.com redirects me to the page to allow app access, I click "authorize" and nothing happens. The page doesn't redirect or anything. I've tried discourse.destinationlinux.network and once I click "authorize" it redirects to a page discourse.destinationlinux.network/user_api but there's nothing on the page. In either case I'm left with a blank widget on the dashboard with no connected accounts.

satoshinotdead commented 1 year ago

That's a confirmed bug? Can you share the errors from the logs?

I will try that soon and I hope I can help but we need to get into the logs.

You can check /var/log/syslog and /var/www/html/data/nextcloud.log (or wathever you have the installation).