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

Update Google client initialisation to use MLP helper method #372

Merged
merged 2 commits into from
Mar 30, 2023

Conversation

deadlycoconuts
Copy link
Contributor

@deadlycoconuts deadlycoconuts commented Mar 28, 2023

What this PR does / why we need it:
With the introduction of a helper method in MLP (caraml-dev/mlp#78) to abstract away the creation of a Google client to append ID tokens to the headers of outgoing requests, that is authenticated with service or user accounts, this PR imports the said helper method and uses it to initialise its Google client.

This ensures that all outgoing requests from the Turing API server contain ID tokens in their headers.

Which issue(s) this PR fixes:

Fixes #

Does this PR introduce a user-facing change?:

NONE

Checklist

  • Added unit test, integration, and/or e2e tests
  • Tested locally
  • Updated documentation
  • Update Swagger spec if the PR introduce API changes
  • Regenerated Golang and Python client if the PR introduce API changes

@deadlycoconuts deadlycoconuts added the enhancement New feature or request label Mar 28, 2023
@deadlycoconuts deadlycoconuts self-assigned this Mar 28, 2023
@deadlycoconuts deadlycoconuts changed the title Update google client init to use mlp helper method Update Google client initialisation to use MLP helper method Mar 28, 2023
@deadlycoconuts deadlycoconuts marked this pull request as ready for review March 28, 2023 17:09
Copy link
Contributor

@krithika369 krithika369 left a comment

Choose a reason for hiding this comment

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

LGTM 🎉

@deadlycoconuts deadlycoconuts merged commit b89ab45 into main Mar 30, 2023
40 checks passed
@deadlycoconuts deadlycoconuts deleted the update_google_client_initialisation branch March 30, 2023 02:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants