diff --git a/.gitignore b/.gitignore index ed67baa..aaab2ec 100644 --- a/.gitignore +++ b/.gitignore @@ -134,3 +134,4 @@ files/ message_example.json rocketchat_message.json rocketchat_room.json +access_token.json diff --git a/README.md b/README.md index b9c4138..573958f 100644 --- a/README.md +++ b/README.md @@ -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