it has been a while since I proposed this feature ,
but I finally managed to get this done .
I needed this to be able to dynamically compute
a token claim based on user attributes with a
When "Script Mapper" is selected in the "Create New Mapper" dialog,
then the following script is used as a default value:
* Available variables:
* user - the current user
* realm - the current realm
* token - the current token
* userSession - the current userSession
//insert your code here...