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

feat: add services client constructor for default headers #1737

Merged
merged 1 commit into from
Apr 16, 2024

Conversation

oddgrd
Copy link
Contributor

@oddgrd oddgrd commented Apr 15, 2024

Description of change

Add a new method to the ServicesApiClient, which is useful in places where we want to set some headers on all requests. The new_with_bearer method is similar, but it's specific for bearer auth and it only takes the token. On the new architecture, we want to pass a secret on all requests to the new provisioner, and this new method makes it simpler.

How has this been tested? (if applicable)

Tested on new platform, CI.

@oddgrd oddgrd requested a review from chesedo April 15, 2024 09:13
@oddgrd oddgrd merged commit ae3c5b0 into feat/shuttle-ecs-common Apr 16, 2024
29 of 32 checks passed
@oddgrd oddgrd deleted the feat/setup-new-provisioner-client branch April 16, 2024 10:09
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.

None yet

2 participants