Decide whether the new token can be issued and gather the claims that are associated with
the issued token.
Procedure
-
Gather claims for the newly issued token. For a JWT example, set the claims in the attribute
container under the type "
urn:ibm:jwt:claim":
var req_stsuu = new STSUniversalUser();
req_stsuu.addAttribute(new Attribute("act", "urn:ibm:jwt:claim", actClaimsJson.uni_sub));
- In the delegation flow, add the "act" claims into the STSUU and save it in the database
in the post mapping rule.
stsuu.addContextAttribute(new Attribute("act",
"urn:ibm:names:ITFIM:oauth:body:param", JSON.stringify(actClaimsJson.uni_act)));