mitreid-connect / OpenID-Connect-Java-Spring-Server

An OpenID Connect reference implementation in Java on the Spring platform.
Other
1.48k stars 765 forks source link

Revocation endpoint #1510

Open athulrl opened 5 years ago

athulrl commented 5 years ago

I have a question regarding the revocation endpoint. My OP server and the Resource servers are two separate projects. I have implemented the resource server with the client app. I could successfully call the revocation endpoint, and could delete the access token from the server database, during the logout process. But the problem is, since the JWT is self defined, the token is still valid till its actual end time. That means, the JWT is still valid even if the user is logged off. I don't want the RP to depend on the database, since that will suppress the advantage of JWT. I feel like there is no other way to verify the access token apart from the Introspection endpoint. That means, the client has to call the Introspection endpoint in each call before it actually grant access to protected resource.

  1. Could you please confirm whether my understanding is correct?
  2. The client has to call the Introspection endpoint in each call before it actually grant access to protected resource?
  3. If point 2 is incorrect, whether the client app has the capability of validating the access token without calling Introspection endpoint?