-
Notifications
You must be signed in to change notification settings - Fork 183
Open
Labels
authenticationenhancementNew feature or requestNew feature or requestproxysize/MMedium PR: 300-599 lines changedMedium PR: 300-599 lines changed
Description
Summary
Connect the UpstreamTokenService to the middleware and simplify the swap logic.
What
EmbeddedAuthServerconstructs the service and exposes it viaUpstreamTokenService()accessorMiddlewareRunnerinterface changes fromGetUpstreamTokenStorage()toGetUpstreamTokenService()- Middleware rewritten: replace direct storage access + manual expiry check with a single
GetValidTokens()call + error-to-HTTP mapping
Why
Completes the upstream token refresh feature. The middleware becomes a thin layer that gets a valid credential or maps an error to the appropriate HTTP status.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
authenticationenhancementNew feature or requestNew feature or requestproxysize/MMedium PR: 300-599 lines changedMedium PR: 300-599 lines changed