Only Able to get Builtin Client Scopes via Java API

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?


This works


This doesnt work

Found a solution:

  1. User ${idToken.getOtherClaims()} will give you all Attributes that you added to the Accesstoken

  2. Create Java class that extracts the value

public Boolean test(String x) {

           return true;
   return false;
  1. Final code could look like this. Returns true if test==false and false if test==false