Docs: Add access token acquisition

This commit is contained in:
Henrik Hüttemann 2023-05-17 19:39:53 +02:00
parent ffb1e91c90
commit 6ba30cb2a7
No known key found for this signature in database
GPG Key ID: 9F7BD10E0A8A111E
2 changed files with 11 additions and 0 deletions

1
.gitignore vendored
View File

@ -134,3 +134,4 @@ files/
message_example.json
rocketchat_message.json
rocketchat_room.json
access_token.json

View File

@ -23,6 +23,16 @@ docker-compose exec -it synapse register_new_matrix_user http://localhost:8008 -
Then you can access the homeserver in [Element Web](https://app.element.io/#/login) or the [local admin interface](http://localhost:8080) as `http://localhost:8008` with the `verdiadmin` as username AND password.
You can store an access token for that user:
```shell
curl --request POST \
--url http://localhost:8008/_matrix/client/v3/login \
--header 'Content-Type: application/json' \
--data '{"type": "m.login.password","user": "verdiadmin","password": "verdiadmin","device_id": "DEV"}' \
> access_token.json
```
## Design Decisions
- Getting data from Rocket.Chat via (currently) manual mongodb export