- A homeserver which supports [Token-authenticated registration](https://spec.matrix.org/v1.3/client-server-api/#token-authenticated-registration). Currently the only known implementation is [Synapse](https://github.com/matrix-org/synapse).
- An account on that homeserver which can create registration tokens. Synapse requires the account to be an admin.
### Develop Instructions
### Develop Instructions
---
---
...
@@ -53,3 +60,34 @@ yarn cypress open
...
@@ -53,3 +60,34 @@ yarn cypress open
Ensure you copy the `cypress/fixtures/demoInstance.sample.json` file to `cypress/fixtures/demoInstance.json` and edit
Ensure you copy the `cypress/fixtures/demoInstance.sample.json` file to `cypress/fixtures/demoInstance.json` and edit
the keys accordingly.
the keys accordingly.
## Homeserver requirements & configuration
Chatterbox makes use of the [Token-authenticated registration](https://spec.matrix.org/v1.3/client-server-api/#token-authenticated-registration) feature,
and as such your homeserver implementation will need to support it.
### Synapse
Synapse has supported this feature since at least 1.52.0. You can enable token registration in homeserver config with:
```yaml
registration_requires_token:true
```
You will also need to manually create a registration token with the [create token API](https://matrix-org.github.io/synapse/latest/usage/administration/admin_api/registration_tokens.html#create-token).
You must use the access token of an administatator for this. See [the Synapse documentation](https://matrix-org.github.io/synapse/latest/usage/administration/admin_api/index.html) for help.