AAE-24139 Fix unauthorized user error when access token is not valid (#10012)

* AAE-24139 Bump angular-oauth2-oidc version to 15

* AAE-24139 Allow to set sessionCheckEnabled and clockSkewInSec properties

* AAE-24139 Update angular-oauth2-oidc version to 15 in the core deps

* AAE-24139 Remove authentication tokens when the token is no longer valid and reload the page to let oauth library refresh the token

* fix lint issue
This commit is contained in:
Amedeo Lepore
2024-09-10 15:09:32 +02:00
committed by GitHub
parent f1208d45c3
commit b20107fdc5
8 changed files with 134 additions and 16 deletions
+6 -12
View File
@@ -26,7 +26,7 @@
"@ngx-translate/core": "^14.0.0",
"@storybook/core-server": "8.2.6",
"@storybook/theming": "8.2.6",
"angular-oauth2-oidc": "^13.0.1",
"angular-oauth2-oidc": "^15.0.1",
"angular-oauth2-oidc-jwks": "^17.0.2",
"apollo-angular": "^5.0.2",
"chart.js": "^4.3.0",
@@ -13900,16 +13900,15 @@
}
},
"node_modules/angular-oauth2-oidc": {
"version": "13.0.1",
"resolved": "https://registry.npmjs.org/angular-oauth2-oidc/-/angular-oauth2-oidc-13.0.1.tgz",
"integrity": "sha512-aL1VIv9Jqoqq31lbpUXIeNpM3GeN/ldb3KOlq0cV92amGpZs9J4YA+2rlJ5V9zb6NFNbvd7XfTntMbnNuS0+CQ==",
"version": "15.0.1",
"resolved": "https://registry.npmjs.org/angular-oauth2-oidc/-/angular-oauth2-oidc-15.0.1.tgz",
"integrity": "sha512-5gpqO9QL+qFqMItYFHe8F6H5nOIEaowcNUc9iTDs3P1bfVYnoKoVAaijob53PuPTF4YwzdfwKWZi4Mq6P7GENQ==",
"dependencies": {
"fast-sha256": "^1.3.0",
"tslib": "^2.0.0"
},
"peerDependencies": {
"@angular/common": ">=12.0.0",
"@angular/core": ">=12.0.0"
"@angular/common": ">=14.0.0",
"@angular/core": ">=14.0.0"
}
},
"node_modules/angular-oauth2-oidc-jwks": {
@@ -19157,11 +19156,6 @@
"resolved": "https://registry.npmjs.org/fast-safe-stringify/-/fast-safe-stringify-2.1.1.tgz",
"integrity": "sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA=="
},
"node_modules/fast-sha256": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/fast-sha256/-/fast-sha256-1.3.0.tgz",
"integrity": "sha512-n11RGP/lrWEFI/bWdygLxhI+pVeo1ZYIVwvvPkW7azl/rOy+F3HYRZ2K5zeE9mmkhQppyv9sQFx0JM9UabnpPQ=="
},
"node_modules/fast-uri": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.0.1.tgz",