Bypass the the account selection screen while logout.

Prem kumar Ayyappan 26 Reputation points
2022-03-04T11:16:23.533+00:00

I am using the @azure/msal-angular v2 and angular v13. I have business need to logout the user based on the scenario. So, If the user logged in and has no authority to proceed. I will programmatically trigger the logoutRedirect() function

MsalService.instance.logoutRedirect({
    account,
    postLogoutRedirectUri: 'http://localhost:4200/test',
    onRedirectNavigate:()=>{
              return true;
    }
}); 

Expected behavior: It needs to logged out based on the details passed in the logoutRedirect (no user selection screen is necessary).

Actual Behavior: It shows the account selection screen and the user interaction is necessary to sign-out.

Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments

2 answers

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.

    3 deleted comments

    Comments have been turned off. Learn more

  2. Sarath 1 Reputation point
    2022-05-16T06:45:54.737+00:00

    Hi @Prem kumar Ayyappan , @AmanpreetSingh-MSFT ...How did you do the V1 endpoint redirection? Can you please specify how it can be configured?

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.