Hello Kirill
it's as simple as add a section in the post token mapping rule for request type introspect...
for example the following section at the end of the post token map rule
if(request_type == "introspect") {
stsuu.addContextAttribute(new Attribute("cippo", "urn:ibm:names:ITFIM:oauth:response:attribute", "lippo"));
}
will add the "cippo" attribute with fixed value when doing introspect
{
"scope": "openid email",
"active": true,
"token_type": "bearer",
"exp": 1594628440,
"cippo": "lippo",
"iat": 1594624930,
"client_id": "client-9060",
"username": "pippo"
}
of course you need to have the same logic as above article to retrieve the proper attributes/values
------------------------------
Gianluca Gargaro
IBM
Roma
------------------------------