element-hq / element-meta

Shared/meta documentation and project artefacts for Element clients
75 stars 12 forks source link

Onboarding users and registering with a registration token not working form IOS #997

Open LutzLange opened 1 year ago

LutzLange commented 1 year ago

Your use case

What would you like to do?

I configured my synapse to allow signup, but require a registration token. I tried that process through the IOS element app, and failed to sign up successfully.

This is my synapse/homeserver.yml config :

...
enable_registration: true
registration_requires_token: true

Why would you like to do it?

I would like to be able to allow non-precreated users to easily sign up to the chat. The idea is to provide a Link or QR code that people can use to start the process.

This would allow to codify the correct server and the registration token within the URL as parameters. ( right?)

This is the URL that I'm using / clicking on IOS using my onPrem instance :

"https://element.lutz.sales-demos.element.io/?hs_url=element.lutz.sales-demos.element.io&token="

How would you like to achieve it?

Using the Sign up URL, you don't need to select the server. The token allows for my gated access.

ISSUE:

It does not work. See the screenshot here :

Screenshot from 2023-02-14 16-28-59

Screenshot from 2023-02-14 16-29-14

Screenshot from 2023-02-14 16-30-20

Have you considered any alternatives?

No response

Additional context

No response

Are you willing to provide a PR?

No

LutzLange commented 1 year ago

I might be running into https://github.com/matrix-org/synapse/issues/7676

This should use the v2 api instead, right?

t3chguy commented 1 year ago

@LutzLange https://matrix-org.github.io/synapse/latest/admin_api/user_admin_api.html#create-or-modify-account is an Admin API

1) often not available via the public internet (docs suggest to not reverse proxy it) 2) it requires an admin token, if you have one of those then you can delete etc accounts, so that's definitely not the same as a registration token

LutzLange commented 1 year ago

I'm aware that I need a registration token to register.

@daniellekirkwood told me that the IOS and possibly the Android client are currently not implementing or supporting the correct spec for this.

I've documented my steps for setting this up here. You will need to be invited to that GitHub repo. Feel free to ping me.

It should have landed a few days for Element Web. I'll test and report.