When i map custom scopes to builtin mappers. I can easily extract them from the IDToken. But if i do custom mappers with exact same properties it doesnt work.
Whats the difference between builtin mappers and selfcreated mappers?
${idToken.phoneNumber}
This works
${idToken.test}
This doesnt work
Found a solution:
User ${idToken.getOtherClaims()} will give you all Attributes that you added to the Accesstoken
Create Java class that extracts the value
public Boolean test(String x) {
if(x.contains("test=true")==true){ return true; } else{ return false; }}
controller.test(idToken.getOtherClaims().toString())}