Commit 26da0d3
authored
feat: support GDC-H Credentials (#1642)
* chore: initial additions to handle GDC-H API audience
* chore: add unit tests for GDC-H
* chore: cleanup of logic
* chore: decompose tests into separate methods
* chore: fix clirr diff check
* chore: fmt:format
* chore: add support in `ClientSettings`
* chore: add showcase IT for GDCH credentials
* chore: comments
* chore: improve tests
* chore: add partial IT for testing context credential
* chore: recreate GdchCredentials with audience using convenience method
* chore: more readable api audience logic
* chore: no wildcard imports
* chore: javadoc for public methods
* chore: gdch test to use default null initialization
* chore: tear down for gdch IT
* chore: `assertThrows` for gdch ITs
* chore: mvn fmt:format
* test: remove context test
* docs: explain that audience will be overriden if set through client/stub settings
* test: test audience setting should modify initial credentials
* chore: clirr check
* chore: ignore gdch changes
* chore: format
* chore: default to endpoint if audience not provided
* test: refresh gdch creds to confirm audience works
* chore: fmt
* chore: fmt
* chore: better test names in ClientContextTest
* chore: better test names for showcase tests
* chore: simplify refresh verification logic
* chore: include outcome in gdch it test names
* chore: expand comments in GDCH ITs
* test: intercept mock transport to verify audience
* chore: fmt
* chore: move auth test-jar to shared dependencies
* chore: cleanup
* chore: use inferred version for auth library
* deps: update google-auth-java-library to 1.19.0
* choreL fmt ITGdch.java
* chore: import auth test-jar using common version variable
* chore: remove auth test-jar import from first-party-dependencies
* chore: add license headers to new files
* chore: revert google-auth-version to be obtained from main branch
* chore: correct showcase parent pom indentation
* chore: remove resource declaration for native test build1 parent 41007a9 commit 26da0d3
12 files changed
Lines changed: 602 additions & 1 deletion
File tree
- gax-java
- gax
- src
- main/java/com/google/api/gax/rpc
- test/java/com/google/api/gax/rpc
- showcase/gapic-showcase
- src/test
- java/com/google/showcase/v1beta1/it
- util
- resources
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
10 | 16 | | |
11 | 17 | | |
12 | 18 | | |
| |||
Lines changed: 47 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| 44 | + | |
43 | 45 | | |
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
47 | 49 | | |
| 50 | + | |
48 | 51 | | |
49 | 52 | | |
50 | 53 | | |
| |||
109 | 112 | | |
110 | 113 | | |
111 | 114 | | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
112 | 122 | | |
113 | 123 | | |
114 | 124 | | |
| |||
119 | 129 | | |
120 | 130 | | |
121 | 131 | | |
122 | | - | |
| 132 | + | |
| 133 | + | |
123 | 134 | | |
124 | 135 | | |
125 | 136 | | |
| |||
167 | 178 | | |
168 | 179 | | |
169 | 180 | | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
170 | 205 | | |
171 | 206 | | |
172 | 207 | | |
| |||
325 | 360 | | |
326 | 361 | | |
327 | 362 | | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
328 | 374 | | |
329 | 375 | | |
330 | 376 | | |
Lines changed: 25 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
114 | 119 | | |
115 | 120 | | |
116 | 121 | | |
| |||
124 | 129 | | |
125 | 130 | | |
126 | 131 | | |
| 132 | + | |
127 | 133 | | |
128 | 134 | | |
129 | 135 | | |
| |||
255 | 261 | | |
256 | 262 | | |
257 | 263 | | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
258 | 276 | | |
259 | 277 | | |
260 | 278 | | |
| |||
322 | 340 | | |
323 | 341 | | |
324 | 342 | | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
325 | 349 | | |
326 | 350 | | |
327 | 351 | | |
| |||
344 | 368 | | |
345 | 369 | | |
346 | 370 | | |
| 371 | + | |
347 | 372 | | |
348 | 373 | | |
349 | 374 | | |
| |||
Lines changed: 31 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| 76 | + | |
76 | 77 | | |
77 | 78 | | |
78 | 79 | | |
| |||
103 | 104 | | |
104 | 105 | | |
105 | 106 | | |
| 107 | + | |
106 | 108 | | |
107 | 109 | | |
108 | 110 | | |
| |||
172 | 174 | | |
173 | 175 | | |
174 | 176 | | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
175 | 183 | | |
176 | 184 | | |
177 | 185 | | |
| |||
188 | 196 | | |
189 | 197 | | |
190 | 198 | | |
| 199 | + | |
191 | 200 | | |
192 | 201 | | |
193 | 202 | | |
| |||
205 | 214 | | |
206 | 215 | | |
207 | 216 | | |
| 217 | + | |
208 | 218 | | |
209 | 219 | | |
210 | 220 | | |
| |||
234 | 244 | | |
235 | 245 | | |
236 | 246 | | |
| 247 | + | |
237 | 248 | | |
238 | 249 | | |
239 | 250 | | |
| |||
268 | 279 | | |
269 | 280 | | |
270 | 281 | | |
| 282 | + | |
271 | 283 | | |
272 | 284 | | |
273 | 285 | | |
| |||
289 | 301 | | |
290 | 302 | | |
291 | 303 | | |
| 304 | + | |
292 | 305 | | |
293 | 306 | | |
294 | 307 | | |
| |||
435 | 448 | | |
436 | 449 | | |
437 | 450 | | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
438 | 463 | | |
439 | 464 | | |
440 | 465 | | |
| |||
513 | 538 | | |
514 | 539 | | |
515 | 540 | | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
516 | 546 | | |
517 | 547 | | |
518 | 548 | | |
| |||
540 | 570 | | |
541 | 571 | | |
542 | 572 | | |
| 573 | + | |
543 | 574 | | |
544 | 575 | | |
545 | 576 | | |
| |||
0 commit comments