mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-06 09:13:19 +03:00
[PR #405] feat: implement token introspection #823
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/pocket-id/pocket-id/pull/405
State: closed
Merged: Yes
This PR implements the token introspection as requested in ticket #395.
It fulfills RFC 7662 as far as I can tell (at least the client that required it is happy with the result).
The endpoint requires a
client_id/client_secretpair for authentication, so no random attackers can use it to fish for valid tokens (although that attack vector is pretty limited currently, since we don't offer any token revocation anyway). Potentially we could also allow API token auth for this endpoint, but for now it should be a good start with clientid/clientsecret already.It also allows checking for the validity of a
refresh_token.Fixes: https://github.com/pocket-id/pocket-id/issues/395