Hi community,
(we are on ISVA 10.0.0.1)
I have created a Trust Chain to generate a jwt token. The last step is to call a default map module because I want to use a mapping rule to inspect & modify the token.
In particular, I want to scan the attributes in the token and remove a few of them (because we don't use them & they make the token too big)
I'm struggling to find the correct syntax to achieve this.
using getRequestedSecurityToken(), I managed to get a Requested Security Token from the RequestSecurityTokenResponse object,.
(According to Javadoc this is a as an org.w3c.dom.Element)
var tokenResponse = stsresponse.getRequestSecurityTokenResponse();
var requestedToken = tokenResponse.getRequestedSecurityToken();
I'm afraid my java skills are exhausted as I cannot find what's the next step to actually scan the attributes included in this token, remove the ones I don't want and finally recreate the token.
Would anybody have a reference to examples that I could use that would do something similar?
Thanks,
Louis
------------------------------
Louis Beaudry
Access Management
Intact Financial Corporation
------------------------------