From 6ba30cb2a7b72fde11097b4828b3eba737f9e1c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20H=C3=BCttemann?= Date: Wed, 17 May 2023 19:39:53 +0200 Subject: [PATCH] Docs: Add access token acquisition --- .gitignore | 1 + README.md | 10 ++++++++++ 2 files changed, 11 insertions(+) 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