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

🐛 Pass authorization config to asset discovery direct requests #986

Merged
merged 2 commits into from
Jul 12, 2022

Conversation

Robdel12
Copy link
Contributor

@Robdel12 Robdel12 commented Jul 7, 2022

What is this?

Turns out when using the authorization config in .percy.yml (where you pass a username/password rather than encoding it as a header), those aren't passed as request headers. So simply grabbing the same headers and passing them to the node request won't work here. We need to check if the authorization config exists and if it does, apply that header to the Node request.

@Robdel12 Robdel12 added the 🐛 bug Something isn't working label Jul 7, 2022
@Robdel12 Robdel12 requested a review from wwilsman July 7, 2022 17:57
@Robdel12 Robdel12 force-pushed the rd/authorization-direct-request branch from 62e5d7d to 5d18d08 Compare July 7, 2022 17:59
packages/core/src/network.js Outdated Show resolved Hide resolved
packages/core/src/discovery.js Outdated Show resolved Hide resolved
@Robdel12 Robdel12 requested a review from wwilsman July 12, 2022 17:13
Copy link
Contributor

@wwilsman wwilsman left a comment

Choose a reason for hiding this comment

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

🎮

@Robdel12 Robdel12 merged commit a273190 into master Jul 12, 2022
@Robdel12 Robdel12 deleted the rd/authorization-direct-request branch July 12, 2022 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants