-
Notifications
You must be signed in to change notification settings - Fork 13.9k
feat(federation): Add XMPP bridge support #40758
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
Merged
Merged
Changes from all commits
Commits
Show all changes
63 commits
Select commit
Hold shift + click to select a range
810dacf
add new routes required for federation bridges
sampaiodiego 77a71fe
expose a way to save federation messages
sampaiodiego d17dc00
create room with alias
sampaiodiego ec948a3
fix bridge users not as local
sampaiodiego b37f463
support join without invite for public rooms
sampaiodiego ea68632
add xmpp slash command to join rooms
sampaiodiego d0b6cbb
fix typing
sampaiodiego de2a0a9
save user displayname
sampaiodiego 33d03d7
add file upload support
sampaiodiego 5b4c6ce
send files
sampaiodiego a45a87b
add profile routes for specific fields
sampaiodiego 91549e6
add valid response to /client/versions
sampaiodiego 01751e3
use standard logger instance for Matrix APIs
sampaiodiego e2a688f
add read receipt capability
sampaiodiego 9ad5489
setup xmpp via settings
sampaiodiego 5874ce7
remove check hack
sampaiodiego 2a43dec
cleanup slashcommand
sampaiodiego c868539
chore: bump federation-sdk to version 0.7.0-beta.0
sampaiodiego 13074e0
chore: update federation-sdk to version 0.7.0-beta.1
sampaiodiego 8d896aa
fix usernames from xmpp
sampaiodiego f941172
bump federation-sdk to 0.7.0-beta.3
sampaiodiego 1ef25d8
better error logging
sampaiodiego 1e80d36
add error handling to xmpp slash command
sampaiodiego df12d02
fix profile displayname set
sampaiodiego e956a4f
always show the name as typing
sampaiodiego 853bcac
change variable name to better reflect its actual value
sampaiodiego c01a40a
cleanup not used code
sampaiodiego 040eddd
remove catchall route
sampaiodiego f6706c6
better error return
sampaiodiego 067eaf9
add support to admin/bridge room
sampaiodiego 921b5d7
update settings' descriptions
sampaiodiego 96359a7
add support to ping events
sampaiodiego 35ecb95
bump federation-sdk to 0.7.0-beta.4
sampaiodiego eb8d875
fix i18n
sampaiodiego e6431ed
rename /xmpp command to /xmpp-join
sampaiodiego d87d4f0
fix settings enableQuery
sampaiodiego 22d3cd2
fix command hint
sampaiodiego 0f80151
code cleanup
sampaiodiego f8a3080
add comment regarding endpoint path behavior
sampaiodiego 7934b56
validate room and return proper error in case it is unknown
sampaiodiego 5d9636d
dont allow user registration matching bridge namespace
sampaiodiego ab27ac7
fix join endpoint not returning room_id
sampaiodiego 2d1a72f
accept optional eventType
sampaiodiego f04384a
accepts plain user name for client register
sampaiodiego 2b421ca
improve empty response schema
sampaiodiego 1d85216
improve versions response schema
sampaiodiego 464aca0
improve presence response schema
sampaiodiego 04bae63
declare 404 return for endpoints
sampaiodiego f47886a
add eventId to set topic endpoint
sampaiodiego 0258c40
validate if both rooms and user bridge are exclusive
sampaiodiego 8d7f28f
validate limit
sampaiodiego caa422f
passthrough resized thumbnail stream
sampaiodiego 2c4bfd6
validate empty domain
sampaiodiego 6b3eb0a
remove unused publicRooms endpoint
sampaiodiego 08a7723
remove directory route
sampaiodiego dd2e0f3
fix bot being created without appservice id
sampaiodiego 9808eed
bump federation-sdk to 0.7.0-beta.6
sampaiodiego bb525a2
fix review
sampaiodiego 2b1c11c
more review fixes
sampaiodiego c46da7e
bump @rocket.chat/federation-sdk to 0.7.0-beta.7
sampaiodiego 9371e87
bump federation-sdk to 0.7.0-beta.8
sampaiodiego 8b3f1ae
register xmpp appservice
sampaiodiego fdf0233
bump federation-sdk to 0.7.0
sampaiodiego File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
apps/meteor/server/lib/callbacks/checkUsernameAvailabilityCallback.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| import { Callbacks } from './callbacksBase'; | ||
|
|
||
| /** | ||
| * Discriminates what kind of handle is being validated, so handlers can check the right | ||
| * namespace: `user` for a person's username, `room` for a room/team name. Rooms, teams | ||
| * and users share one local handle namespace. | ||
| */ | ||
| export type UsernameAvailabilityCheckType = 'user' | 'room'; | ||
|
|
||
| /** | ||
| * Runs while validating whether a handle may be used (user creation, SSO/LDAP assignment and | ||
| * renames, plus room renames and team creation, all funnel through `checkUsernameAvailability`). | ||
| * Handlers should throw to reject the handle. The `type` tells the handler whether a user or | ||
| * a room/team is being validated. With no handler registered this is a no-op. | ||
| */ | ||
| export const checkUsernameAvailabilityCallback = | ||
| Callbacks.create<(username: string, type: UsernameAvailabilityCheckType) => void>('checkUsernameAvailability'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.