Skip to content

fix: federation token exchange - #41434

Merged
DeepDiver1975 merged 1 commit into
masterfrom
fix/federation-token-exchange
Jan 15, 2026
Merged

fix: federation token exchange#41434
DeepDiver1975 merged 1 commit into
masterfrom
fix/federation-token-exchange

Conversation

@DeepDiver1975

@DeepDiver1975 DeepDiver1975 commented Jan 13, 2026

Copy link
Copy Markdown
Contributor

Description

Bugfix: Disallow empty tokens when pairing trusted servers

An empty token could be used to pair trusted servers, which is not secure.

How Has This Been Tested?

  • 🤖

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Database schema changes (next release will require increase of minor version instead of patch)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests only (no source changes)

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:
  • Changelog item, see TEMPLATE

@DeepDiver1975
DeepDiver1975 force-pushed the fix/federation-token-exchange branch 2 times, most recently from cb622f1 to 2a0a32b Compare January 14, 2026 10:48
}

protected function isValidToken($url, $token) {
public function isValidToken($url, $token): bool {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'd keep it protected if possible. If it needs to be public due to the unit test, I'd write a comment to say that it's public due to the test and the public usage is discouraged.

@DeepDiver1975
DeepDiver1975 force-pushed the fix/federation-token-exchange branch from 2a0a32b to 02581ad Compare January 14, 2026 11:58
@DeepDiver1975 DeepDiver1975 changed the title fix: federations token exchange fix: federation token exchange Jan 14, 2026
@DeepDiver1975
DeepDiver1975 merged commit 6eb8a90 into master Jan 15, 2026
5 checks passed
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.

3 participants