Skip to content
This repository has been archived by the owner on May 31, 2022. It is now read-only.

CheckTokenEndpoint should not throw invalid token exceptions #1942

Open
jzheaux opened this issue Dec 10, 2021 · 1 comment
Open

CheckTokenEndpoint should not throw invalid token exceptions #1942

jzheaux opened this issue Dec 10, 2021 · 1 comment

Comments

@jzheaux
Copy link
Contributor

jzheaux commented Dec 10, 2021

The Introspection spec states (emphasis mine):

Note that a properly formed and authorized query for an inactive or
otherwise invalid token
(or a token the protected resource is not
allowed to know about) is not considered an error response by this
specification
. In these cases, the authorization server MUST instead
respond with an introspection response with the "active" field set to
"false"
as described in Section 2.2.

CheckTokenEndpoint throws an InvalidTokenException in this case, but should instead respond with:

{
    "active" : false
}

Given that no further releases are planned for this project, I'm logging this simply as a point of reference to help address spring-projects/spring-security#10038.

@jzheaux
Copy link
Contributor Author

jzheaux commented Dec 10, 2021

Related to #1122

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant