SchildiChat / SchildiChat-android

Matrix client / Element Android fork
https://schildi.chat/android/
Apache License 2.0
407 stars 57 forks source link

homeserver `tusooa.xyz` not fully suppoerted #140

Closed Satanepigone closed 2 years ago

Satanepigone commented 2 years ago

I was trying to login using homeserver 'tusooa.xyz`.

1st try: "Sign in with Matrix ID" Matrix ID: @xxxxx:tusooa.xyz Password: yyyyyyyy

Error msg: "Unable to find a valid homeserver. Please check your identifier"

2nd try: "Custom server: Address: https://tusooa.xyz/ press "Continue" -> press "Sign In" Username: xxxxx Password: yyyyyyyy

Successfully login!

Hardware: Google Pixel 4XL OS: Android 12 (SQ3A.220705.003.A1) SchildiChat was installed through Goolge Play.

SpiritCroc commented 2 years ago

In order for the first method to work, your server needs to provide a proper .well-known/matrix/client:

Example how it should look: https://schildi.chat/.well-known/matrix/client (base url should be https://tusooa.xyz for you) Your server returns a 404: https://tusooa.xyz/.well-known/matrix/client

SpiritCroc commented 2 years ago

See also https://matrix-org.github.io/synapse/latest/setup/installation.html#client-well-known-uri

tusooa commented 1 year ago

Well-known is NOT required as per https://spec.matrix.org/v1.4/client-server-api/#server-discovery .

IGNORE Stop the current auto-discovery mechanism. If no more auto-discovery mechanisms are available, then the client may use other methods of determining the required parameters, such as prompting the user, or using default values.

Make a GET request to https://hostname/.well-known/matrix/client. If the returned status code is 404, then IGNORE.

We properly return a 404, so the client should use default value of tusooa.xyz .

SpiritCroc commented 1 year ago

Then please test and report on Element, if this issue still exists.

SpiritCroc commented 1 year ago

may use other methods of determining the required parameters, such as prompting the user, or using default values.

Doesn't sound like it must use default values here though. (Obviously would be nicer for the user if it did though. But I'll leave that to the Element people.)

SpiritCroc commented 1 year ago

Note to self: if this works with Element but not with SchildiChat right now, related issue: https://github.com/SchildiChat/SchildiChat-android/issues/145