Commit 8143c99
committed
feat: use environment variables for CLI auth instead of file flags
Pass CODER_URL and CODER_SESSION_TOKEN via SSH SetEnv directive instead
of using --session-token-file and --url-file CLI flags. This simplifies
the auth flow by using environment variables that the CLI natively supports.
Changes:
- Remove --session-token-file and --url-file from vscodessh ProxyCommand
- Add CODER_URL and CODER_SESSION_TOKEN to SSH SetEnv directive
- Update doc comments to reflect persistence-only purpose of file storage
- Keep file-based storage for extension's own credential persistence1 parent 91d481e commit 8143c99
2 files changed
+13
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
710 | 710 | | |
711 | 711 | | |
712 | 712 | | |
713 | | - | |
714 | | - | |
| 713 | + | |
| 714 | + | |
715 | 715 | | |
716 | | - | |
| 716 | + | |
717 | 717 | | |
718 | 718 | | |
719 | 719 | | |
| |||
728 | 728 | | |
729 | 729 | | |
730 | 730 | | |
731 | | - | |
732 | | - | |
| 731 | + | |
733 | 732 | | |
734 | | - | |
| 733 | + | |
735 | 734 | | |
736 | 735 | | |
737 | 736 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
479 | 479 | | |
480 | 480 | | |
481 | 481 | | |
| 482 | + | |
| 483 | + | |
482 | 484 | | |
483 | 485 | | |
484 | 486 | | |
| |||
597 | 599 | | |
598 | 600 | | |
599 | 601 | | |
| 602 | + | |
| 603 | + | |
600 | 604 | | |
601 | 605 | | |
602 | 606 | | |
| |||
677 | 681 | | |
678 | 682 | | |
679 | 683 | | |
680 | | - | |
681 | | - | |
682 | | - | |
| 684 | + | |
683 | 685 | | |
684 | 686 | | |
685 | 687 | | |
| |||
690 | 692 | | |
691 | 693 | | |
692 | 694 | | |
693 | | - | |
694 | | - | |
695 | | - | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
696 | 698 | | |
697 | 699 | | |
698 | 700 | | |
| |||
0 commit comments