react-aad icon indicating copy to clipboard operation
react-aad copied to clipboard

Consent Deny by user doesn't redirect to application start page

Open csalgo70 opened this issue 5 years ago • 0 comments
trafficstars

This issue is for a: (mark with an x)

- [X ] bug report -> please search issues before submitting
- [X ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

User signs-in first time by clicking a Sign-In button on the web app's home page. This then redirects the user to login with MSA. He is presented with the consent dialog He realizes he needs to consent to use the application and decides to use a different msa to use with this app. Hence he choose to click "No" on consent dialog. The app logs him out on detecting this.

But it doesn't redirect to the application start page or any postLogoutRedirectUri given. It simply logs the user out and stays with the familiar "You have signed out of your account....its a good idea to close all browser windows"

Expected/desired behavior

Given this scenario why not redirect in this case also ? Why does it ( seems by choice ) not redirect to start page or postLogoutRedirectUri, when the user consent is denied ?

Library versions

  • react-aad-msal: [ 2.3.5]

Not a lib issue ?

Maybe this is not an issue with this library but that is how AzureAD / MSAL works ?

csalgo70 avatar Aug 01 '20 06:08 csalgo70