journey script:
var attributes = nodeState.get("lookupAttributes");
var name = attributes.get("username")
nodeState.putShared("username", name)
logger.error("Nodestate: "+JSON.stringify(attributes)+ name)
action.goTo("true");Social Identity provider Normalise script:
(function () {
var fr = JavaImporter( org.forgerock.json.JsonValue);
var identity = fr.JsonValue.json(fr.JsonValue.object());
identity.put('username', jwtClaims.get('username'));
logger.error("CLAIMS: "+jwtClaims.get('username'))
return identity;
}());