Commit 88f1047
authored
Add native support for Azure DevOps OIDC authentication (#1027)
Added native support for Azure DevOps OIDC authentication to allow
authentication from Azure DevOps pipeline's environment.
## Testing
Tested on an Azure DevOps project. Used the SDK to authenticate with a
Databrick's workspace using Azure DevOps OIDC
1) Created a demo python files that uses the SDK to create a Workspace
Client: This will test if the OIDC authentication is working
<img width="1905" height="937" alt="Screenshot 2025-09-18 at 15 42 18"
src="https://github.com/user-attachments/assets/8fef9c12-a3a4-4421-b6e3-608e76072b21"
/>
2) Created a pipeline to run the demo file. Set the necessary
environment variables.
(System.AccessToken is slightly different, it needs to be exported
through pipeline syntax:
https://learn.microsoft.com/en-us/azure/devops/pipelines/build/variables?view=azure-devops&tabs=yaml#systemaccesstoken)
<img width="1898" height="975" alt="Screenshot 2025-09-18 at 15 43 34"
src="https://github.com/user-attachments/assets/b0618f96-4dea-4cab-aa31-36cc99f32194"
/>
3) The pipeline runs successfully indicating that authentication
succeeded.
<img width="1912" height="987" alt="Screenshot 2025-09-18 at 15 43 59"
src="https://github.com/user-attachments/assets/6eb5d0e9-bc04-414e-8c04-a21cf8dce078"
/>
---------
Signed-off-by: Divyansh Vijayvergia <[email protected]>1 parent 64a5550 commit 88f1047
File tree
5 files changed
+393
-13
lines changed- databricks/sdk
- tests
5 files changed
+393
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
| 129 | + | |
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| 133 | + | |
133 | 134 | | |
134 | 135 | | |
135 | 136 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
93 | 92 | | |
94 | 93 | | |
95 | 94 | | |
| |||
103 | 102 | | |
104 | 103 | | |
105 | 104 | | |
106 | | - | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
107 | 111 | | |
108 | 112 | | |
109 | 113 | | |
| |||
356 | 360 | | |
357 | 361 | | |
358 | 362 | | |
359 | | - | |
360 | | - | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
361 | 366 | | |
362 | | - | |
363 | | - | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
364 | 373 | | |
365 | | - | |
366 | | - | |
| 374 | + | |
| 375 | + | |
367 | 376 | | |
368 | | - | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
369 | 383 | | |
| 384 | + | |
370 | 385 | | |
371 | 386 | | |
372 | 387 | | |
373 | 388 | | |
374 | 389 | | |
375 | 390 | | |
376 | | - | |
| 391 | + | |
377 | 392 | | |
378 | 393 | | |
| 394 | + | |
379 | 395 | | |
380 | 396 | | |
| 397 | + | |
| 398 | + | |
381 | 399 | | |
382 | 400 | | |
383 | 401 | | |
384 | 402 | | |
385 | | - | |
| 403 | + | |
386 | 404 | | |
387 | 405 | | |
388 | 406 | | |
| |||
408 | 426 | | |
409 | 427 | | |
410 | 428 | | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
411 | 459 | | |
412 | 460 | | |
413 | 461 | | |
| |||
1019 | 1067 | | |
1020 | 1068 | | |
1021 | 1069 | | |
| 1070 | + | |
1022 | 1071 | | |
1023 | 1072 | | |
1024 | 1073 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| 7 | + | |
6 | 8 | | |
| 9 | + | |
| 10 | + | |
7 | 11 | | |
8 | 12 | | |
9 | 13 | | |
| |||
26 | 30 | | |
27 | 31 | | |
28 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
0 commit comments