Merge pull request #33396 from backstage/rugvip/refactor-cli-auth-into-cli-node

cli-node: add CliAuth class for shared CLI authentication
This commit is contained in:
Patrik Oldsberg
2026-03-17 21:32:07 +01:00
committed by GitHub
40 changed files with 1096 additions and 318 deletions
-5
View File
@@ -1,5 +0,0 @@
---
'@backstage/cli-module-auth': patch
---
Export auth helper utilities for use by other CLI modules. Added per-instance config storage with `getInstanceConfig` and `updateInstanceConfig`.
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/cli-node': patch
---
Added `CliAuth` class for managing CLI authentication state. This provides a class-based API with a static `create` method that resolves the currently selected (or explicitly named) auth instance, transparently refreshes expired access tokens, and exposes helpers for other CLI modules to authenticate with a Backstage backend.