Description
Heya, as the first line in your controller you do:
$this->resourceServer->validateAuthenticatedRequest($request);
This checks if there is a bearer token with a valid access token in the Authorization header. But that is probably not how you should implement that afaik. The token you are presenting for introspection as the token body parameter, should not be the one used for authentication. (and it can be now if it's a valid token).
I think the specs mention either basic auth or some other mechanism. Maybe simply leave it up to the consumer of your package to decide how to implement authentication for the introspection client. Although im not sure how, i dont think they could assign a middleware to your routes easily.
im interested in how you see this.