@dsivd/prestations-ng 18.3.9 → 18.3.10
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
|
@@ -12,6 +12,14 @@
|
|
|
12
12
|
- [foehn-header.component.ts](projects/prestations-ng/src/foehn-header/foehn-header.component.ts)
|
|
13
13
|
- Do not display preferences in the menu if they are not ready
|
|
14
14
|
|
|
15
|
+
## [18.3.10]
|
|
16
|
+
|
|
17
|
+
### Fixed
|
|
18
|
+
|
|
19
|
+
- [IamExpiredInterceptorService](projects/prestations-ng/src/sdk-redirect/iam-expired-interceptor.service.ts)
|
|
20
|
+
- [gesdem-error-handler.service.ts](projects/prestations-ng/src/gesdem/gesdem-error-handler.service.ts)
|
|
21
|
+
- fix action recovery not showing OTP for since v18.3.5
|
|
22
|
+
|
|
15
23
|
## [18.3.8]
|
|
16
24
|
|
|
17
25
|
### Fixed
|
|
Binary file
|
|
@@ -1964,9 +1964,11 @@ class IamExpiredInterceptorService {
|
|
|
1964
1964
|
const errorUrl = err.url ?? '';
|
|
1965
1965
|
const isUrlAcvLogin = this.iamAcvRedirectLocationRegex.test(errorUrl);
|
|
1966
1966
|
const isUrlAcvOidcLogin = this.iamAcvOidcRedirectLocationRegex.test(errorUrl);
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1967
|
+
const isIamSessionExpired = err.status === HttpStatusCode.Unauthorized &&
|
|
1968
|
+
// ensure this is not a session token error to let GesdemErrorHandlerService do its job
|
|
1969
|
+
(!err.error?.message ||
|
|
1970
|
+
err.error?.message !== 'Session expired');
|
|
1971
|
+
if (isIamSessionExpired || isUrlAcvLogin || isUrlAcvOidcLogin) {
|
|
1970
1972
|
this.setIamSessionExpiredManually();
|
|
1971
1973
|
}
|
|
1972
1974
|
}
|
|
@@ -2007,10 +2009,10 @@ class GesdemErrorHandlerService {
|
|
|
2007
2009
|
if (isPdfGenerationError) {
|
|
2008
2010
|
return this.onPdfGenerationError(response.error.message);
|
|
2009
2011
|
}
|
|
2010
|
-
const
|
|
2012
|
+
const isSessionTokenExpired = response.status === 401 &&
|
|
2011
2013
|
response.error &&
|
|
2012
|
-
response.error.
|
|
2013
|
-
const errorCode =
|
|
2014
|
+
response.error.message === 'Session expired';
|
|
2015
|
+
const errorCode = isSessionTokenExpired
|
|
2014
2016
|
? SESSION_EXPIRED
|
|
2015
2017
|
: response.error
|
|
2016
2018
|
? response.error.code
|