16 May 2024 |
tulir | https://github.com/mautrix/signal/tree/bridgev2/connector | 15:59:34 |
PulseDev | Oh, cool! | 15:59:43 |
PulseDev | tysm | 15:59:48 |
tulir | connector.go has most stuff, message conversion is shared with the old bridge, login is temporarily hacked into main in the mautrix-signal-v2 directory | 16:00:04 |
PulseDev | okay, thanks! I’ll have a look at it as soon as I‘m home | 16:05:42 |
PulseDev | Why are people here on Matrix so helpful man
Just got it up and running like 3 days ago and never ran accross someone being toxic or whatever even tho I asked some really dumb things 😂 | 16:13:51 |
PulseDev | Okaay, so from very hasty experimenting in the train it really looks like reading chats need some specific permissions. I certainly hope its just a claim and not a permission set by the organisation 😂😮💨 | 16:52:20 |
PulseDev |  Download IMG_7447.png | 16:56:12 |
PulseDev | looks like I‘m gonna do some reverse engineering | 16:56:23 |
PulseDev | YESSSS it actually workssss
But the API is really shitty structured just to get the chats and or name of the other chat person you need to query:
/chats for all chats (filter out meetings chat here)
/chats/id/members to get the name of the other person and then
/chats/id/messages to get the actual messages man whats this xd | 17:09:57 |
PulseDev | And then there are endpoints in the explorer which dont even exist lol | 17:10:55 |
PulseDev | * And then there are endpoints in the explorer which dont even exist lol
Edit: You need consent/permission from an admin to send messages.. | 17:12:56 |
tulir | you probably just need to get the token the same way as the official client (assuming the official clients have the same api) | 17:27:19 |
tulir | that way you'll have all the permissions official clients have | 17:27:31 |
PulseDev | its another api I think from quickly inspecting it :D | 17:28:15 |
tulir | then making a good bridge will probably require reverse-engineering that | 17:55:24 |
tulir | (unless you find some workaround for permissions in the official api, like using tokens from the client rather than whatever user tokens they officially let you have) | 17:55:54 |
PulseDev | yeah | 17:55:59 |
PulseDev | Ill see | 17:56:02 |
17 May 2024 |
david | The app I’m debugging for another small bridge is using signed JWT tokens for authentication, with very short expiration time that’s part of the token itself. Also no way to refresh it
Wondering if anyone had experience with this for other bridges. All I can think of currently is to load the apk into ghidra and search for the signing key 🤔
Or see if at some point during initial auth there’s a key exchange but haven’t seen anything like it | 06:00:13 |
| djl0 joined the room. | 20:24:34 |
18 May 2024 |
david | * The app I’m debugging for another small bridge is using signed JWT tokens for authentication, with very short expiration time that’s part of the token itself. Also no way to refresh it
Wondering if anyone had experience with this for other bridges. All I can think of currently is to load the apk into ghidra and search for the signing key 🤔
Or see if at some point during initial auth there’s a key exchange but haven’t seen anything like it
gave up for now
| 09:56:58 |
david | * The app I’m debugging for another small bridge is using signed JWT tokens for authentication, with very short expiration time that’s part of the token itself. Also no way to refresh it
Wondering if anyone had experience with this for other bridges. All I can think of currently is to load the apk into ghidra and search for the signing key 🤔
Or see if at some point during initial auth there’s a key exchange but haven’t seen anything like it
gave up for nowe
| 09:57:05 |
david | * The app I’m debugging for another small bridge is using signed JWT tokens for authentication, with very short expiration time that’s part of the token itself. Also no way to refresh it
Wondering if anyone had experience with this for other bridges. All I can think of currently is to load the apk into ghidra and search for the signing key 🤔
Or see if at some point during initial auth there’s a key exchange but haven’t seen anything like it
gave up for now
| 09:57:10 |
19 May 2024 |
david | In reply to @pulsedev:pulseflow.ch Would be really cool 🙃 Hey, I got around to strip my stuff to the bare minimum and push it to GitHub as a boilerplate-ish. I wanted something that I can copy and run right away, but it’s super wip and specific to my needs
https://github.com/dvcrn/bridgekit-boilerplate
Probably better to go with bridgev2 at this point tbh but lmk if this helps as reference | 04:45:40 |
david | Maybe we can make a similar boilerplate/quickstart for bridgev2 | 04:46:17 |
PulseDev | Awesome, thanks! | 08:03:29 |
| &ers changed their display name from apitman to &ers. | 23:30:23 |
20 May 2024 |
david | Redacted or Malformed Event | 03:34:39 |
david | Redacted or Malformed Event | 03:36:30 |