matrix-org / issues-bridging

Issue tracker for work being done on Matrix bridges for New Vector. Better than a google doc.
0 stars 1 forks source link

Write a proposal on how to do callbacks between integration services and bridges #36

Open Half-Shot opened 5 years ago

Half-Shot commented 5 years ago

For billing etc

turt2live commented 5 years ago

@turt2live so I can watch this

Half-Shot commented 5 years ago

Thinking on this some more:

Endpoints could be:

POST /verify/room/linked -> used to verify if a room should be linked POST /verify/user/linked -> used to verify if a user should be linked POST /verify/room/unlink -> used to verify if a room should be unlinked POST /verify/user/unlink -> used to verify if a user should be unlinked

Each of these endpoints would be called with the id of the bridge, the (user|room) id, and any useful information about the remote (user|room). The integration service could then make an informed choice on if the user or room should be modified.

On the verification side of things, the bridge and the integration manager need some way to verify that the requests are valid. Probably some kind of shared secret?