krille-chan / fluffychat

The cutest instant messenger in the [matrix]
https://fluffychat.im/
GNU Affero General Public License v3.0
894 stars 151 forks source link

Impossible connection using CAS (Central Authentication Service protocol) #796

Open OniriCorpe opened 5 months ago

OniriCorpe commented 5 months ago

Bug Description

One user of my YunoHost package just reported a bug, which seems to be related to CAS handling by fluffychat

@croulibri https://github.com/YunoHost-Apps/fluffychat_ynh/issues/6#issuecomment-1887915119:

What is strange is that when I want to connect to my Yunohost Synapse homeserver, through https://fluffychat.im/web/ it works (with your suggested modification of authentication), but not with Fluffychat on my Yunohost server.

First I have tried to change access to Fluffychat web from my Yunohost member only to "all visitors" without effect.

At the last step, when "I click on the button with an arrow" I am redirected to Yunohost authentication. So I enter my Yunohost credential.

  • Then with https://fluffychat.im/web/ I land on a simple page saying "Authentication is complete. If this does not happen automatically, please close the window.". I can close the window and enjoy Fluffychat connected to my Yunohost homeserver.

  • And with Fluffychat on my Yunohost server, I land to the Yunohost webpage with all my applications, and the previous Fluffychat page still opened is not connected to my Synapse server.

I suspect that the <base href="/something/"> in the html is not taken into account on the fluffychat side during the CAS authentication process

Steps to Reproduce

Expected Behavior

be properly logged in to the matrix account

App Version

1.17.0

Additional Platform Information

Web version (YunoHost package)

Additional Context

see the original issue for more details: https://github.com/YunoHost-Apps/fluffychat_ynh/issues/6

github-actions[bot] commented 1 month ago

This issue is stale because it has been open for 120 days with no activity.

OniriCorpe commented 1 month ago

uh