@backstage/core-components 0.14.4 → 0.14.5
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 +6 -0
- package/alpha/package.json +1 -1
- package/dist/index.esm.js +8 -2
- package/dist/index.esm.js.map +1 -1
- package/package.json +2 -2
- package/testUtils/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @backstage/core-components
|
|
2
2
|
|
|
3
|
+
## 0.14.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- a29ed8d: The `SignInPage` guest provider will now fall back to legacy guest auth if the backend request fails, allowing guest auth without a running backend.
|
|
8
|
+
|
|
3
9
|
## 0.14.4
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/alpha/package.json
CHANGED
package/dist/index.esm.js
CHANGED
|
@@ -6772,7 +6772,10 @@ const Component$1 = ({
|
|
|
6772
6772
|
provider: "guest",
|
|
6773
6773
|
discoveryApi
|
|
6774
6774
|
});
|
|
6775
|
-
const identityResponse = await getIdentity(identity)
|
|
6775
|
+
const identityResponse = await getIdentity(identity).catch((error) => {
|
|
6776
|
+
console.warn(`Failed to sign in as a guest, ${error}`);
|
|
6777
|
+
return void 0;
|
|
6778
|
+
});
|
|
6776
6779
|
if (!identityResponse) {
|
|
6777
6780
|
const useLegacyGuestTokenResponse = confirm(
|
|
6778
6781
|
"Failed to sign in as a guest using the auth backend. Do you want to fallback to the legacy guest token?"
|
|
@@ -6805,7 +6808,10 @@ const loader$1 = async (apis) => {
|
|
|
6805
6808
|
provider: "guest",
|
|
6806
6809
|
discoveryApi: apis.get(discoveryApiRef)
|
|
6807
6810
|
});
|
|
6808
|
-
const identityResponse = await getIdentity(identity)
|
|
6811
|
+
const identityResponse = await getIdentity(identity).catch((error) => {
|
|
6812
|
+
console.warn(`Failed to sign in as a guest, ${error}`);
|
|
6813
|
+
return void 0;
|
|
6814
|
+
});
|
|
6809
6815
|
if (!identityResponse && !useLegacyGuestToken) {
|
|
6810
6816
|
return void 0;
|
|
6811
6817
|
} else if (identityResponse && useLegacyGuestToken) {
|