Hello,
I am using CAS 6.2.5 and I also noticed the same issue.
When I make a request to the /introspect endpoint with an access_token as parameter and basic authorization header with client_id:client_secret, the "client-id" claim of the introspect response contains the client_id I passed in the auth header instead of containing the "client_id" which requested the access_token.
I looked at the source code to understand how the introspection response is generated, I am not a java developper, but I think the issue is coming from this line :
introspect.setClientId(service.getClientId());
should probably be
introspect.setClientId(ticket.getClientId());
to display the client_id from the access_token passed in parameter.
Could someone confirm my diagnosis and suggested fix? Is there a workaround/configuration known by CAS experts?
-Frederic