The API documentation only lists the `/revoke` endpoint, which only revokes a specific JWT. The OIDC realm also makes available the `/logout` endpoint, which allows revoking a session entirely.
However, being able to revoke a specific token, or logout a current session, requires having said tokens. If the user discards/forgets these tokens, but believes them to be compromised or simply wishes to revoke/logout unused sessions, they can only wait 30 days of disuse before those refresh tokens fall off.
Users should be allowed to review their active sessions and log them out. Since this is Keycloak, I believe the appropriate areas that we can not access that we should are:
- https://www.servercontrolpanel.de/realms/scp/account
- https://servercontrolpanel.de/realms/scp/acc…curity/signedin
This is especially important as I just discovered that when I change my SCP password, previous refresh tokens still remain active. Lets say I were compromised by an attacker who takes control of my netcup resources through the REST API. Even if I change my password, I would still be compromised.
Along with access to session management, users should be able to revoke all sessions at once as an optional setting during a password change.