Repository navigation
Commit b404d83
{Profile}
Code-review follow-ups on the OIDC token-refresh feature:
- Add an explicit connect/read timeout to the GitHub Actions and Azure DevOps OIDC
token requests via a shared _oidc_http_request helper. Without it, a stalled
connection would hang token acquisition (and, for --federated-identity, every
concurrent refresh thread holding the lock) indefinitely on a long-running CI job.
Timeout and connection failures now raise a clear CLIError.
- Parse the --federated-token-callback command with POSIX rules on every platform.
The previous posix=False path on Windows left literal quote characters in argv, so a
quoted argument containing spaces (e.g. an audience) reached the program corrupted.
POSIX parsing handles quoting correctly and consistently; the Windows backslash
caveat is documented in the help text and docstring.
Adds tests for the request timeout path and quoted-argument parsing.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>az login: Add HTTP timeout and fix callback arg parsing1 parent 01bd46f commit b404d83
3 files changed
Lines changed: 56 additions & 11 deletions
File tree
- src
- azure-cli-core/azure/cli/core/auth
- tests
- azure-cli/azure/cli/command_modules/profile
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
485 | 485 | | |
486 | 486 | | |
487 | 487 | | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
488 | 492 | | |
489 | 493 | | |
490 | 494 | | |
| |||
508 | 512 | | |
509 | 513 | | |
510 | 514 | | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
511 | 530 | | |
512 | 531 | | |
513 | 532 | | |
| |||
534 | 553 | | |
535 | 554 | | |
536 | 555 | | |
537 | | - | |
| 556 | + | |
538 | 557 | | |
539 | 558 | | |
540 | 559 | | |
| |||
586 | 605 | | |
587 | 606 | | |
588 | 607 | | |
589 | | - | |
| 608 | + | |
590 | 609 | | |
591 | 610 | | |
592 | 611 | | |
| |||
605 | 624 | | |
606 | 625 | | |
607 | 626 | | |
608 | | - | |
609 | | - | |
610 | | - | |
611 | | - | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
612 | 632 | | |
| 633 | + | |
613 | 634 | | |
614 | 635 | | |
615 | | - | |
616 | | - | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
617 | 639 | | |
618 | 640 | | |
619 | 641 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
324 | 324 | | |
325 | 325 | | |
326 | 326 | | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
327 | 336 | | |
328 | 337 | | |
329 | 338 | | |
| |||
415 | 424 | | |
416 | 425 | | |
417 | 426 | | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
418 | 440 | | |
419 | 441 | | |
420 | 442 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
98 | | - | |
99 | | - | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
100 | 101 | | |
101 | 102 | | |
102 | 103 | | |
| |||
0 commit comments