8000 fix: Use configured proxy for OIDC server-to-server requests by tommoor · Pull Request #8776 · outline/outline · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix: Use configured proxy for OIDC server-to-server requests #8776

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 1 commit into from
Mar 25, 2025

Conversation

tommoor
Copy link
Member
@tommoor tommoor commented Mar 25, 2025

closes #8775

@tommoor tommoor marked this pull request as ready for review March 25, 2025 00:40
@tommoor tommoor requested a review from Copilot March 25, 2025 00:42
Copy link
Contributor
@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR introduces a new OIDCStrategy that leverages a configured HTTPS proxy for server-to-server OIDC requests. It replaces global monkey-patching of the passport-oauth2 Strategy with a dedicated subclass implementation and updates the fetch import in the passport utility.

Reviewed Changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated no comments.

File Description
plugins/oidc/server/auth/OIDCStrategy.ts Added a new subclass extending Strategy to set a configured HTTPS proxy and override methods.
plugins/oidc/server/auth/oidc.ts Replaced Strategy monkey-patching with the new OIDCStrategy to ensure proxy support.
server/utils/passport.ts Updated the fetch import to use a local wrapper instead of node-fetch.
Files not reviewed (1)
  • package.json: Language not supported

@tommoor tommoor merged commit c12b257 into main Mar 25, 2025
12 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.

Ensure proxy is used in OIDC connections
1 participant
0