Skip to content
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

Supports basic auth in remote specifications #437

Merged
merged 3 commits into from
Nov 11, 2024

Conversation

simonbs
Copy link
Contributor

@simonbs simonbs commented Nov 8, 2024

Description

This updates the /api/proxy endpoint to support fetching remote specifications behind basic auth.

Motivation and Context

The fetch() API does not support URLs with basic authentication on the form https://username:[email protected]. So we extract the username and password from URL and supply an authorization header instead.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

@simonbs simonbs self-assigned this Nov 8, 2024
@simonbs simonbs enabled auto-merge November 8, 2024 09:48
@simonbs simonbs marked this pull request as draft November 11, 2024 07:52
auto-merge was automatically disabled November 11, 2024 07:52

Pull request was converted to draft

ulrikandersen
ulrikandersen previously approved these changes Nov 11, 2024
@ulrikandersen ulrikandersen marked this pull request as ready for review November 11, 2024 09:54
@simonbs simonbs enabled auto-merge November 11, 2024 10:06
@simonbs simonbs disabled auto-merge November 11, 2024 10:06
@simonbs simonbs enabled auto-merge November 11, 2024 10:07
@simonbs simonbs merged commit 7f13873 into develop Nov 11, 2024
7 checks passed
@simonbs simonbs deleted the enhancement/support-basic-auth branch November 11, 2024 10:24
@simonbs simonbs requested a review from Copilot November 19, 2024 19:38

Choose a reason for hiding this comment

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

Copilot reviewed 3 out of 3 changed files in this pull request and generated no suggestions.

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.

2 participants