element-hq / element-android

A Matrix collaboration client for Android.
https://element.io/
GNU Affero General Public License v3.0
3.35k stars 711 forks source link

[SDK] Implement Token-based registration (MSC3231) #8192

Open MexHigh opened 1 year ago

MexHigh commented 1 year ago

Description

Element Web recently fully implemented the token based registration. Please add this to Element Android as well.

Currently, Element Android falls back to the Homeserver's static webpage at /_matrix/static/client/register instead of rendering a view.

cheradenine commented 1 year ago

+1

this issue is being discussed with a few groups I'm involved in who want to setup homeservers but without open registration and this is becoming a real sticking point to the point where I was promted to come search for this issue.

Tlay-1991 commented 1 year ago

30 Mar 2023 Per, saat 04:56 tarihinde John Burkhardt < @.***> şunu yazdı:

+1

this issue is being discussed with a few groups I'm involved in who want to setup homeservers but without open registration and this is becoming a real sticking point to the point where I was promted to come search for this issue.

— Reply to this email directly, view it on GitHub https://github.com/vector-im/element-android/issues/8192#issuecomment-1489573328, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3MFWRGVXWH74PX2U4VUD2TW6TR3ZANCNFSM6AAAAAAVMLWRLM . You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- iPhone’umdan gönderildi

jdnorthrup commented 1 year ago

+1 this would be incredibly useful. Hopefully for iOS client as well as Android. Thanks!!!

Alternately, if an "invitation link" workflow was possible for non-public registration servers, that would also be useful.

MexHigh commented 1 year ago

Just found out that the /_matrix/static/client/register endpoint was removed (see here: https://github.com/matrix-org/synapse/issues/7676). This makes token registration in Element Android not only impractical, but completely impossible!

kiler129 commented 3 weeks ago

So is there a sane workaround here? Thinking about migrating my family to Matrix and this is a bit of a showstopper as people aren't technical. Some of them don't even own a computer ;)

MexHigh commented 2 weeks ago

@kiler129

So is there a sane workaround here?

Maybe something has changed since I've opened this issue? I've read almost all changelogs since then but it seems that it MSC3231 was never implemented in element.

kiler129 commented 2 weeks ago

Maybe something has changed since I've opened this issue? I've read almost all changelogs since then but it seems that it MSC3231 was never implemented in element.

I was looking as well. The only idea @kolorafa tried on one of the servers is redirecting to the web client. While this works, it creates another problem: once user registers, keys will be saved in the web view that is ephemeral, meaning that logging in the app will give you unverified session... so practically user will have to reset keys just after registration which is a poor UX.