-
Notifications
You must be signed in to change notification settings - Fork 932
Implement exchangeToken public api #9039
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
base: gcip-byociam-web
Are you sure you want to change the base?
Conversation
|
Vertex AI Mock Responses Check
|
7713281
to
7bcdaf8
Compare
40ca4b5
to
27674f1
Compare
Size Report 1Affected Products
Test Logs |
Size Analysis Report 1This report is too large (375,540 characters) to be displayed here in a GitHub comment. Please use the below link to see the full report on Google Cloud Storage.Test Logs |
7516e0e
to
f8410db
Compare
* Implement InitializeAuth changes for BYO-CIAM Firebase Auth * Removing white space * Addressing review comments * Adding Unit test for initializeAuth with TenantConfig dependency * Running yarn run demo * Update doc
* Throw not supported exception in _performApiRequest
fb70a71
to
41ad562
Compare
7bcdaf8
to
a3dc91a
Compare
* for an OidcToken i.e. Outbound Access Token. | ||
* | ||
* @remarks | ||
* This method is implemented only for {@link DefaultConfig.REGIONAL_API_HOST} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{@link DefaultConfig.REGIONAL_API_HOST} here and in other comments are not generated in the above .md files.
Perhaps, can we use backtick around DefaultConfig.REGIONAL_API_HOST
instead of link?
|
||
Asynchronously exchanges an OIDC provider's Authorization code or Id Token for an OidcToken i.e. Outbound Access Token. | ||
|
||
This method is imeplemented only for and requires [TenantConfig](./auth.tenantconfig.md#tenantconfig_interface) to be configured in the [Auth](./auth.auth.md#auth_interface) instance used. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo: implemented
Also, there's an extra whitespace between "for and" because {@link DefaultConfig.REGIONAL_API_HOST}
isn't generated.
@@ -0,0 +1,46 @@ | |||
/** | |||
* @license | |||
* Copyright 2020 Google LLC |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2025
Same for other new files.
@@ -595,4 +603,34 @@ describe('api/_performApiRequest', () => { | |||
.and.not.have.property('tenantId'); | |||
}); | |||
}); | |||
|
|||
context('throws Operation not allowed exception', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we test a happy case for _performRegionalApiRequest to verify it sets the correct request, method, HTTP Headers, etc.
Please resolve the merge conflicts. |
Discussion
exchangeToken
Testing