forked from dani-garcia/bw_web_builds
-
Notifications
You must be signed in to change notification settings - Fork 1
/
oidc_sso_errors.patch
24 lines (21 loc) · 807 Bytes
/
oidc_sso_errors.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Subject: [PATCH] Display all sso errors and reset flow
---
libs/angular/src/auth/components/sso.component.ts | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/libs/angular/src/auth/components/sso.component.ts b/libs/angular/src/auth/components/sso.component.ts
index 5fe65a065..526d973ca 100644
--- a/libs/angular/src/auth/components/sso.component.ts
+++ b/libs/angular/src/auth/components/sso.component.ts
@@ -333,7 +333,11 @@ export class SsoComponent {
null,
this.i18nService.t("ssoKeyConnectorError"),
);
+ } else {
+ this.platformUtilsService.showToast("error", null, e.message);
}
+ this.router.routeReuseStrategy.shouldReuseRoute = () => false;
+ await this.router.navigate(["/sso"]);
}
private async navigateViaCallbackOrRoute(
--
2.39.2