Does not redirect to my webapp after signout (with Gmail - Azure Ad account)

Nguyen Thai Son (FHN.BU9) 16 Reputation points
2020-11-09T08:53:07.88+00:00

I'm using Azure AD to sign-in/sign-out my webapp (using Msal 2.0). But the sign-out function does not redirect back to my app's login page after sign-out for my Gmail - Azure Ad account (it works for my company domain - azure AD account which is fpt.com). I found that be cause the v2 logout endpoint that Msal 2.0 used does not work for Gmail type account (https://login.microsoftonline.com/{tenant}/oauth2/v2.0/logout?post_logout_redirect_uri=http://localhost:3000/). It does work if I use v1 endpoint (https://login.microsoftonline.com/{tenant}/oauth2/logout?post_logout_redirect_uri=http://localhost:3000/). Please tell me what should I do?
Beside, after logout, the token (logged out) still valid? Is this correct case? (Im using Msal to validate the token).

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,801 questions
{count} votes

Your answer

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