commet icon indicating copy to clipboard operation
commet copied to clipboard

OIDC Login - .well-known potentially not respected

Open jackedproxy opened this issue 7 months ago • 0 comments

Describe the bug (I'd like to preface this by saying this is just the investigation I've done so far - If I'm pointed in the right direction, happy to take a look on my end for any misconfiguration. Also worth stating my users have no issues connecting with other clients.)

Unable to login to self-hosted homeserver using Commet.

URL is accepted, but OIDC option does not appear (potentially related to issue #356).

For the flow, Commet should check .well-known and extract the base_url for where to check for _matrix/client/versions. However, it doesn't seem to be.

My .well-known is under {Domain}/.well-known/matrix/client. My _matrix/client/versions is under the matrix.{Domain} base_url.

Using DevTools Network console I noticed the following:

  • I input {Domain}
  • Commet checks {Domain}/.well-known/matrix/client for the .well-known - So far, so good.
  • It then checks {Domain}/_matrix/client/versions, instead of matrix.{Domain} - This breaks the flow.

If I input matrix.{Domain} it then can't find .well-known, as expected.

To Reproduce Lest I give out my personal homeserver, I believe this should be reproducible by having {Domain} host the .well-known and matrix itself under {subdomain}.{Domain}. This is a configuration supported by Matrix/Synapse. Reproducible on web & mobile.

Expected behavior Commet should extract the base-url from .well-known and use that for any /_matrix/ checks.

Screenshots Image Image Image Image

Additional context N/A

jackedproxy avatar Apr 27 '25 10:04 jackedproxy