-
Notifications
You must be signed in to change notification settings - Fork 25.8k
Invalidate Token API always returns created: true #35115
Copy link
Copy link
Closed
Labels
:Security/AuthenticationLogging in, Usernames/passwords, Realms (Native/LDAP/AD/SAML/PKI/etc)Logging in, Usernames/passwords, Realms (Native/LDAP/AD/SAML/PKI/etc)>bug
Description
The TokenService attempts to inform the caller whether a token invalidation was "created". "created":true is intended to imply that the token was previously valid but is now invalid. false indicates that token was already invalid.
However, this doesn't work, and the API already returns true.
There's 2 issues:
- The UpdateRequest never requests the source, so
updateResponse.getGetResult()is alwaysnull. - Even if we did, the
GetResultis the updated source, not the original source, soinvalidatedwill always betrue(because we just set it).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
:Security/AuthenticationLogging in, Usernames/passwords, Realms (Native/LDAP/AD/SAML/PKI/etc)Logging in, Usernames/passwords, Realms (Native/LDAP/AD/SAML/PKI/etc)>bug
Type
Fields
Give feedbackNo fields configured for issues without a type.