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: Implement DownscopedClient#getAccessToken() and unit test #1201

Merged
merged 14 commits into from
Jun 30, 2021

Conversation

xil222
Copy link
Contributor

@xil222 xil222 commented Jun 30, 2021

Implement DownscopedClient class getAccessToken() API and related unit tests.
Design Doc: link

@xil222 xil222 requested a review from a team as a code owner June 30, 2021 01:45
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Jun 30, 2021
@xil222
Copy link
Contributor Author

xil222 commented Jun 30, 2021

@bojeil-google

@SurferJeffAtGoogle SurferJeffAtGoogle added kokoro:force-run Add this label to force Kokoro to re-run the tests. owlbot:run Add this label to trigger the Owlbot post processor. labels Jun 30, 2021
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jun 30, 2021
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Jun 30, 2021
@SurferJeffAtGoogle SurferJeffAtGoogle merged commit faa6677 into googleapis:master Jun 30, 2021
@bcoe
Copy link
Contributor

bcoe commented Jun 30, 2021

@xil222 thank you for the contribution 👏 excited for this.

src/auth/downscopedclient.ts Show resolved Hide resolved
src/auth/downscopedclient.ts Show resolved Hide resolved
src/auth/downscopedclient.ts Show resolved Hide resolved
src/auth/downscopedclient.ts Show resolved Hide resolved
src/auth/downscopedclient.ts Show resolved Hide resolved
test/test.downscopedclient.ts Show resolved Hide resolved
test/test.downscopedclient.ts Show resolved Hide resolved
src/auth/downscopedclient.ts Show resolved Hide resolved
test/test.downscopedclient.ts Show resolved Hide resolved
public readonly eagerRefreshThresholdMillis: number;
public readonly forceRefreshOnFailure: boolean;

constructor(
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we need to allow the quota_project_id to be provided as optional in the header. You can add this later though.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll add this part as well as test for headers during full implementation.

@xil222 xil222 deleted the getAccessToken branch July 29, 2021 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants