Hi everyone, I’m using Hydra (with Kratos) to get ...
# talk-hydra
d
Hi everyone, I’m using Hydra (with Kratos) to get access and ID tokens. In my case during logout I also want to revoke all tokens related to the oauth2 client. What is the correct way to do it? Should I use
/oauth2/sessions/logout
with id token and then
DELETE /admin/oauth2/auth/sessions/consent
with subject (extracted from ID token) and client id?
a
Kratos already has that feature though it wasn't released my suggestion, build Kratos locally and use that image instead
d
Thank you, but I'm using Ory Network the problem is that usage of
/oauth2/sessions/logout
doesn't remove user's consents so access token remains valid. My question was what how to properly revoke it
a
I may be shooting blind here, but try clearing the cookies at your application layer maybe that'll work
d
Yes, that’s right But I also want to be sure that access or refresh token cannot be reused if they stored somewhere else