Skip to content

fix(passport): map exchange transport and timeout failures to 502 pas… - #1363

Closed
frag70 wants to merge 1 commit into
ubiquity:developmentfrom
frag70:fix-passport-502-transport-failure
Closed

frag70 wants to merge 1 commit into
ubiquity:developmentfrom
frag70:fix-passport-502-transport-failure

Conversation

@frag70

@frag70 frag70 commented Nov 9, 2026

Copy link
Copy Markdown

…sport_unavailable

  • Wrap SSO exchange fetch in exchangeCode helper to catch network and timeout failures
  • Throw PassportError(502) to return 502 passport_unavailable and clear state cookies
  • Retain 401 for invalid credentials and non-transport errors
  • Add regression coverage in tests/passport.test.ts for fetch and timeout failures

Fixes #1282

…sport_unavailable

- Wrap SSO exchange fetch in exchangeCode helper to catch network and timeout failures
- Throw PassportError(502) to return 502 passport_unavailable and clear state cookies
- Retain 401 for invalid credentials and non-transport errors
- Add regression coverage in tests/passport.test.ts for fetch and timeout failures

Fixes ubiquity#1282
@coderabbitai

coderabbitai Bot commented Nov 9, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 2dd0c54b-7acc-4640-b538-f7cd494fc78e
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@ubiquity-os ubiquity-os Bot closed this Nov 9, 2026
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.

Preserve 502 for exchange transport failures

1 participant