You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: use service name as the default audience (#2579)
* fix: use service name as the default audience
* fix
* move code around
* fix tests
* format
* add back public api
* debug info
* more debug
* update
* clean up debug logs
* use settings
* update
* rename variables
* update test:
Copy file name to clipboardExpand all lines: google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/EnhancedBigtableStubSettings.java
+39-13Lines changed: 39 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -250,18 +250,16 @@ public class EnhancedBigtableStubSettings extends StubSettings<EnhancedBigtableS
250
250
.build();
251
251
252
252
/**
253
-
* In most cases, jwt audience == service name. However in some cases, this is not the case. The
254
-
* following mapping is used to patch the audience in a JWT token.
253
+
* Default jwt audience is always the service name unless it's override to test / staging for
Copy file name to clipboardExpand all lines: google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/stub/EnhancedBigtableStubSettingsTest.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -993,7 +993,6 @@ public void enableRetryInfoFalseValueTest() throws IOException {
993
993
"appProfileId",
994
994
"isRefreshingChannel",
995
995
"primedTableIds",
996
-
"jwtAudienceMapping",
997
996
"enableRoutingCookie",
998
997
"enableRetryInfo",
999
998
"enableSkipTrailers",
@@ -1013,6 +1012,7 @@ public void enableRetryInfoFalseValueTest() throws IOException {
0 commit comments