I am developing an ASP.NET core app. I have implemented the OAuth flow using OpenID Connect via the Keycloack server.
In addition to that,
I am able to logout the user from Keycloack.
I am able to revoke the access token via the API.
I have the following requirement, I want to notify my my client application as soon as the token is revoked, so that it can logout user from the application.
Note: Reducing the token lifetime is not a solution for me as our requirement it to revoke access at the runtime.
Is there a way by which the Keycloack can notify me that the access token is no more valid ?