Skip to content

Conversation

@RanLearns
Copy link
Contributor

@RanLearns RanLearns commented Sep 22, 2025

Motivation and Reasoning

This PR marks FederatedServiceRouter and FederatedServiceTokens as public so that custom routers can be built.

I have intentions to create a router for Apple Roster API authentication, and this change would allow others to create routers for any custom authentication they may need for their Vapor servers.

These were previously public in the Imperial package, and it was suggested that they could be made public again in the Discord conversation here

@RanLearns RanLearns closed this Sep 22, 2025
@RanLearns RanLearns reopened this Sep 22, 2025
@codecov
Copy link

codecov bot commented Sep 22, 2025

Codecov Report

❌ Patch coverage is 87.50000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 82.41%. Comparing base (fdc9099) to head (930a96f).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
Sources/ImperialCore/FederatedServiceRouter.swift 87.50% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #122   +/-   ##
=======================================
  Coverage   82.41%   82.41%           
=======================================
  Files          59       59           
  Lines         802      802           
=======================================
  Hits          661      661           
  Misses        141      141           
Files with missing lines Coverage Δ
Sources/ImperialCore/FederatedServiceRouter.swift 75.00% <87.50%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Member

@fpseverino fpseverino left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

package var errorKey: String { "error" }
public var codeKey: String { "code" }
public var errorKey: String { "error" }
package var callbackHeaders: HTTPHeaders { [:] }
Copy link
Member

Choose a reason for hiding this comment

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

This doesn't need to be public?

@fpseverino fpseverino merged commit 19348b9 into vapor-community:main Sep 22, 2025
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants