Forum Discussion
How do I sign out of my OIDC Entra ID Application?
To answer your actual question first: no, there isn't a revoke endpoint in Entra ID for one refresh token, or for one application. That's the thing the reply above glosses over, and it matters, because the Graph calls it suggests do something much bigger than signing the user out of your app.
Revoke-MgUserSignInSession and the invalidateAllRefreshTokens endpoint both invalidate all the refresh tokens issued to applications for that user — every app they've consented to, not just yours — plus the session cookies in their browser. Microsoft's own description of the operation is that the user has to sign in again to all applications they consented to. So it's a security action for a lost or stolen device, not a routine sign-out button, and it also needs the User.RevokeSessions.All permission, so your SPA can't just call it on its own behalf.
So for a normal sign-out you're choosing between three things, and none of them is 'invalidate just my app's refresh token':
Sign out locally only: delete the tokens your app holds and clear your own session, and don't touch Entra at all. The refresh token technically stays valid until it expires or is revoked, but your app no longer has a copy of it, so it can't be used — this is the standard SPA pattern, and it's what most apps mean by sign out.
End the shared session: send the user to Entra's logout endpoint with a post_logout_redirect_uri back to your app. That clears the Entra session cookie, which is also why it signs them out of other Microsoft apps in that browser — it's the one you said you don't want, and you're right to avoid it for a routine sign-out.
Revoke everything: the Graph call above, when you actually need the tokens dead — a compromised device, a user leaving. Expect a few minutes' delay before the revocation takes effect.
If you go with the local option, one thing worth doing is registering a front-channel logout URL on the app registration, so Entra can tell your app when the user signs out elsewhere and your app can drop its own session to match.