diff --git a/package-lock.json b/package-lock.json index 18130c1c0..1106edf17 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,17 +17,17 @@ } }, "@azure/msal-browser": { - "version": "2.12.0", - "resolved": "https://registry.npmjs.org/@azure/msal-browser/-/msal-browser-2.12.0.tgz", - "integrity": "sha512-yBbP/1W3bMTvRIZ7QAKiS3Euz+8NpRQ0rpqvbkT/UPu6uoCKOkHpIjYpRYa67O5wMavwjHobW7fESqVw6tDGkg==", + "version": "2.19.0", + "resolved": "https://registry.npmjs.org/@azure/msal-browser/-/msal-browser-2.19.0.tgz", + "integrity": "sha512-nVMMSbFeocGv3SUYGBD+3pkE/pbAciGhER3KCjsBu6Sy9EDaBCiQ418KZfHBcCcrNQgFxf3nleWdeYoYX7281g==", "requires": { - "@azure/msal-common": "^4.0.2" + "@azure/msal-common": "^5.1.0" } }, "@azure/msal-common": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/@azure/msal-common/-/msal-common-4.3.0.tgz", - "integrity": "sha512-jFqUWe83wVb6O8cNGGBFg2QlKvqM1ezUgJTEV7kIsAPX0RXhGFE4B1DLNt6hCnkTXDbw+KGW0zgxOEr4MJQwLw==", + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/@azure/msal-common/-/msal-common-5.1.0.tgz", + "integrity": "sha512-4zHZ5Ec7jAgTIWZO3ap1ozgIPGAirF1wL8UhsmPF9QDoZz0cMHdaNmtov5i2+6Xq37YMzhN5s50EFHBuXd7sDQ==", "requires": { "debug": "^4.1.1" } diff --git a/package.json b/package.json index c573670fd..6cdaee732 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "dependencies": { "@augloop/types-core": "file:packages/types-core-2.16.189.tgz", "@axe-core/webdriverjs": "4.3.1", - "@azure/msal-browser": "2.12.0", + "@azure/msal-browser": "2.19.0", "@babel/core": "7.12.13", "@babel/eslint-parser": "7.16.3", "@fluentui/react": "8.28.0", diff --git a/src/modules/authentication/AuthenticationWrapper.ts b/src/modules/authentication/AuthenticationWrapper.ts index 19eba3ddc..c1cab36ac 100644 --- a/src/modules/authentication/AuthenticationWrapper.ts +++ b/src/modules/authentication/AuthenticationWrapper.ts @@ -50,15 +50,12 @@ export class AuthenticationWrapper implements IAuthenticationWrapper { public logOut() { this.deleteHomeAccountId(); - msalApplication.logout(); + msalApplication.logoutRedirect(); } public async logOutPopUp() { - const endSessionEndpoint = (await msalApplication.getDiscoveredAuthority()) - .endSessionEndpoint; - (window as any).open(endSessionEndpoint, 'msal', 400, 600); - this.clearCache(); this.deleteHomeAccountId(); + msalApplication.logoutPopup(); } /**