Now, I am using the IdentityServer4 right now to protect my API, I was planning to use Redis to save the token until it's expired. I want to use Redis to check if the token is validated and activated when identityServer4 receive the token from the discovery endpoint. However, I have not idea where to start and which interface should I modify. Any help will be appreciated. Also, I would like to know more about how the discovery point work when the IS4 get the token send from protected API.
I am trying to modify the ITokenValidator, but seemingly it is not related to the token validation.
The right process will be after the IdentityServer receives the token from API, it will compare the token with the record in Redis and tell the protected API the authentication result.