Hi everyone,
In preToken Mappin Rule there is the code, that seams not to be working:
// Essential claim - set the value to 'n/a' or boolean 'false' if not exist
if (value == null && isEssential) {
value = claimName.endsWith("_verified") ? "false" : "n/a";
.endsWith seams not to be supported. I tried following:
1)
IDMappingExtUtils.traceString("myxxdeb: "+ "teststr".endsWith("_verified"));
2)
var str=new String("teststr");
IDMappingExtUtils.traceString("myxxdeb: "+ str.endsWith("_verified"));
But I always get the exception
Caused by: org.mozilla.javascript.EcmaError: TypeError: Cannot find function endsWith in object teststr. (oidcPreTokenGeneration#811)
I'm really confused. Do I something wrong or IBM uses code, that doesn't work?
------------------------------
Ivan Yartsev
------------------------------