Uploaded image for project: 'Red Hat build of Keycloak'
  1. Red Hat build of Keycloak
  2. RHBK-2904

When calling the token revoke endpoint multiple times with the same token, a database REVOKED-TOKEN constraint error is reported [GHI#37621]

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False

      Before reporting an issue

      [x] I have read and understood the above terms for submitting issues, and I understand that my issue may be closed without action if I do not follow them.

      Area

      account/api

      Describe the bug

      When calling the token revoke endpoint multiple times with the same token, a database REVOKED-TOKEN constraint error is reported.

      !Image

      Version

      26.1.0

      Regression

      [ ] The issue is a regression

      Expected behavior

      Allow multiple revoke of tokens, and return http status 200.

      Actual behavior

      return http status 409.

      { {code}

      "error": "unknown_error"

      
      

      }

      How to Reproduce?

      call the token revoke endpoint multiple times with the same token.
      /realms/xxxx/protocol/openid-connect/revoke

      Anything else?

      No response

              Unassigned Unassigned
              pvlha Pavel Vlha
              Keycloak SRE
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: