I struggle to add claims to OAuth JWT returned from a spring security authorization server at the introspection endpoint (required when using OAuth2TokenFormat.REFERENCE for the access token.
I know how to use the OAuth2TokenCustomizer to add claims to the JWT token. I wonder if there is an analog option for the JWT returned from introspection?
Tried some unsystematic hacks with OAuth2TokenIntrospection.Builder but failed. A small running code example would help a lot.
Martin Smock is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1