@equinor/fusion-framework-cli 14.0.2 → 14.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 14.0.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 0e29f2a: Surface clear, actionable error messages when CLI publish commands fail with 401, 403, or MSAL token errors.
|
|
8
|
+
|
|
9
|
+
Previously auth failures produced terse, low-level output like `"401 - This is not allowed for your role"` or a generic `"failed to parse response"` with no guidance, and errors were rethrown causing double-logged stack traces. Now each auth-related failure maps to a structured message that:
|
|
10
|
+
- Distinguishes **authentication** (401 — missing/expired token) from **authorization** (403 — valid token, insufficient permissions).
|
|
11
|
+
- Detects MSAL `SilentTokenAcquisitionError` (including when wrapped as `HttpJsonResponseError`) and surfaces the underlying Azure AD error detail.
|
|
12
|
+
- Lists concrete troubleshooting steps (check `FUSION_TOKEN`, run `ffc auth login`, verify `--scope`, confirm app registration).
|
|
13
|
+
- Warns when `FUSION_TOKEN` is set so users understand the CLI is using the env token instead of their interactive session.
|
|
14
|
+
- Links directly to the CLI auth and publish docs.
|
|
15
|
+
|
|
16
|
+
This applies to all publish-related CLI commands: `app publish` (check, upload, tag), `portal publish` (upload, tag), `portal config publish`, and `app config publish`. Errors now log and exit cleanly instead of throwing.
|
|
17
|
+
|
|
18
|
+
Fixes: https://github.com/equinor/fusion-framework/issues/4316
|
|
19
|
+
|
|
3
20
|
## 14.0.2
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|