We are creating a lot of offline tokens in our project (login with scope offline_access). Sometimes we have to delete this offline session (tokens). According to the documentation, the delete consent endpoint must be used for this operation. We have noticed that this endpoint is incredibly slow (30 seconds).
e.g. DELETE https://DOMAIN/auth/admin/realms/REALM/users/USERID/consents/CLIENT takes 3,5 or also 30 or 40 seconds. On the database the cpu load is also incredibly high. It seems to me there could be a memory leak or the business logic is badly programmed.
Does anyone know the problem and has a solution? We are using a postgres database.
thx