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

Implement 3PID Binding Hook for Pending Invites in bind.ts #158

Open
rezk2ll opened this issue Jan 6, 2025 · 0 comments
Open

Implement 3PID Binding Hook for Pending Invites in bind.ts #158

rezk2ll opened this issue Jan 6, 2025 · 0 comments
Assignees

Comments

@rezk2ll
Copy link
Member

rezk2ll commented Jan 6, 2025

Description:

In the file packages/matrix-identity-server/src/3pid/bind.ts, there is a TODO comment on line 81 that needs to be addressed:

// TODO : hook for any pending invite and call the onbind api : https://spec.matrix.org/v1.11/client-server-api/#room-aliases

Problem:

The current implementation lacks functionality to handle pending invites and call the onbind API as specified in the

Tasks:

Create Long-Term Key Pairs:

  • Generate long-term Ed25519 key pairs for signing purposes.

Create Signature:

  • Implement a function to create a signature using the generated key pair.

  • Make a POST request to /_matrix/identity/v2/sign-ed25519 to sign the data.

Call onbind API:

  • matrix spec

  • Implement a function to send a PUT request to /_matrix/federation/v1/3pid/onbind on the recipient's Matrix server.

  • Ensure the request includes the necessary payload, such as the signed data and relevant 3PID information.

@rezk2ll rezk2ll changed the title check if the hook for any pending invite is working Implement 3PID Binding Hook for Pending Invites in bind.ts Jan 31, 2025
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

No branches or pull requests

3 participants