You can use the extension point[1]. Write your own implementation of [1] to clear the cache at SP on token revocation and register it as an OSGi service.
[1] https://github.com/wso2-extensions/identity-inbound- auth-oauth/blob/master/components/org.wso2.carbon. identity.oauth/src/main/java/org/wso2/carbon/identity/oauth/event/ OAuthEventInterceptor.java Thanks, Farasath On Tue, Jun 12, 2018 at 7:34 PM, Shiva Kumar K R <[email protected]> wrote: > Hi All, > I am looking for a callback kind of support in identity server that will > be called when an access token is revoked. > > Background:- I am using identity server for oauth authentication. After > obtaining the token I will leverage token introspection API to validate > token on my service provider end. To increase the performance I am caching > the tokens at SP. When token is revoked how can I clear the cache at the > SP. Both SP and Identity server use different caches. > > Thank you, > Shiva > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Farasath Ahamed Senior Software Engineer, WSO2 Inc.; http://wso2.com Mobile: +94777603866 Blog: blog.farazath.com Twitter: @farazath619 <https://twitter.com/farazath619> <http://wso2.com/signature>
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
