Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support mautrix bridgev2 / megabridge APIs #3577

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

ignyx
Copy link
Contributor

@ignyx ignyx commented Oct 7, 2024

New versions of the mautrix go bridges include standardized HTTP endpoints that can be used to log in and manage sessions (spec). Some clients may choose to provide interfaces. At this time, mautrix-manager can consume these endpoints. An auto-discovery .well-known file can be set.

This PR aims to make these endpoints public and setup auto-discovery.

Please let me know :

  • whether this can be useful
  • whether the mautrix-messenger implementation is acceptable, to serve as a baseline for the next bridges
  • any recommendations

@ignyx ignyx force-pushed the feat-enable-mautrix-bridgev2-api branch from 6baa7ce to 61851df Compare October 7, 2024 13:56
Copy link
Owner

@spantaleev spantaleev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good!

How does authentication work?

Have you got mautrix-manager working and successfully accessing the Messenger bridge's bridgev2 API?

@ignyx
Copy link
Contributor Author

ignyx commented Oct 20, 2024

Thanks for the reply !

How does authentication work?

  • For local bridges on same homeserver: the Matrix Access Token is sent with requests to the bridgev2 API
  • For external bridges: "the manager will generate an OpenID token and exchange it for a temporary bridge-specific auth token rather than sending your Matrix access token to the bridge." (from mautrix/manager readme)

Have you got mautrix-manager working and successfully accessing the Messenger bridge's bridgev2 API?

Yes !

image

Note: to read log outputs from mautrix/manager I had to clone the repo and yarn start, then check the console output from the devtools. Logs are not output to stdout.

I will work on adding supported bridges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants