postLogoutRedirectUri not working in Angular 11 sample app running in Chrome
See original GitHub issueLibrary
-
msal@1.x.x
or@azure/msal@1.x.x
-
@azure/msal-browser@2.13.0
-
@azure/msal-node@1.x.x
-
@azure/msal-react@1.x.x
-
@azure/msal-angular@0.x.x
-
@azure/msal-angular@1.x.x
-
@azure/msal-angular@2.0.0-beta.2
-
@azure/msal-angularjs@1.x.x
Framework
- Angular 11
- React
- Other
Description
When logging out of the Angular 11 sample app (running on localhost) I’m redirected to the Azure sign out page, but after signing out I’m not being redirected back to the postLogoutRedirectUri. The logout procedure stops at this URL: https://login.microsoftonline.com/my_tenant_id_here/oauth2/v2.0/logoutsession
Error Message
No errors messages are being thrown.
MSAL Configuration
auth: {
clientId: 'my application client id here',
redirectUri: '/',
postLogoutRedirectUri: '/',
authority: 'https://login.microsoftonline.com/my tenant id here'
},
cache: {
cacheLocation: BrowserCacheLocation.LocalStorage,
storeAuthStateInCookie: isIE, // set to true for IE 11. Remove this line to use Angular Universal
},
I’ve added the locahost uri to Redirect URI’s
Reproduction steps
- Download the Angular 11 MSAL Angular v2 Sample from this repository.
- Change the config as shown above.
- Run the application.
- Sign in and sign out.
Expected behavior
Expected to be redirect back to the Angular 11 sample app after signing out.
Identity Provider
- Azure AD
- Azure B2C Basic Policy
- Azure B2C Custom Policy
- ADFS
- Other
Browsers/Environment
- Chrome
- Firefox
- Edge
- Safari
- IE
- Other (Please add browser name here)
Regression
- Did this behavior work before? Version:
Security
- Is this issue security related?
Source
- Internal (Microsoft)
- Customer request
Issue Analytics
- State:
- Created 2 years ago
- Comments:13 (7 by maintainers)
Top Results From Across the Web
Identity Server 4 does not redirect to Angular clients ...
I have an angular application that uses Identity Server 4 to login. This works fine when logging in, however, after logging out I'm...
Read more >logout when browser is closed angular - You.com
I'm upgrading from Angular 9 to Angular 11, and I'm facing problem with our RouteReuseStrategy . With Angular 11, after login our app...
Read more >Angular 10 (SPA) | cookies storage | angular auth oidc client
No redirect on identity server login page if tokens are valid. Cookies storage for persistent storage of tokens and user data. Angular 10 ......
Read more >Securing an Angular app which uses multiple identity providers
The Angular application uses OpenID Connect code flow with PKCE ... This is not a server rendered application where the security runs in...
Read more >User Authentication and Identity with Angular, Asp.Net Core ...
Modern application security is a complex problem ... As of March 31, 2019, the demo solution builds and runs successfully with the following ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@jo-arroyo I’ve just tried a few browsers and the results are mixed. I’m on macOS. Chrome v. 89.0.4389.114: doesn’t work. Chrome v. 89.0.4389.114 (incognito): works. Firefox v. 87.0 (regular and incognito): doesn’t work. Safari v. 14.0.3: works.
workingtitledk This issue has been automatically marked as stale because it is marked as requiring author feedback but has not had any activity for 5 days. If your issue has not been resolved please leave a comment to keep this open. It will be closed in 7 days if it remains stale.