You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A consent session revocation API is capable for a specific OAuth 2.0 Client or all clients.
I feel scare because all consent sessions of a subject will be revoked if client URL parameter is forgotten or typo.
Describe the solution you'd like
It should revoke all consent sessions of a subject only if it's requested explicitly.
Then I propose 2 ideas
When client parameter's value is all, revokes it
Divide endpoint for a specific client and for all clients
…ed (#1952)
This patch adds query parameter `all` to `/oauth2/auth/sessions/consent`. If `all=true`, then all consent sessions of a certain subject will be revoked.
BREAKING CHANGE: Previously, '/oauth2/auth/sessions/consent?subject=foo@bar.com' would revoke all consent sessions of that user. This may be problematic in cases where the caller forgot to specify the client ID as all tokens for that user are revoked. To prevent that, a "failsave" `all=true` is now required to make this explicit: '/oauth2/auth/sessions/consent?subject=foo@bar.com&all=true'.
Closes#1951
Is your feature request related to a problem? Please describe.
About
DELETE /oauth2/auth/sessions/consent
https://www.ory.sh/hydra/docs/reference/api/#revokes-consent-sessions-of-a-subject-for-a-specific-oauth-20-client
A consent session revocation API is capable for a specific OAuth 2.0 Client or all clients.
I feel scare because all consent sessions of a subject will be revoked if
client
URL parameter is forgotten or typo.Describe the solution you'd like
It should revoke all consent sessions of a subject only if it's requested explicitly.
Then I propose 2 ideas
client
parameter's value isall
, revokes itDELETE /oauth2/auth/sessions/consent/all?subject=string
The text was updated successfully, but these errors were encountered: