Skip to content

Update Google client initialisation to use MLP helper method#372

Merged
deadlycoconuts merged 2 commits into
mainfrom
update_google_client_initialisation
Mar 30, 2023
Merged

Update Google client initialisation to use MLP helper method#372
deadlycoconuts merged 2 commits into
mainfrom
update_google_client_initialisation

Conversation

@deadlycoconuts
Copy link
Copy Markdown
Collaborator

@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
Copy Markdown
Collaborator

@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
@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.

2 participants