var username = context.get(Scope.REQUEST, "urn:ibm:security:asf:request:token:attribute", "username");
var emailAddress = context.get(Scope.REQUEST, "urn:ibm:security:asf:request:token:attributes", "emailAddress");
output from trace log.
IDMappingExtUtils.traceString("username from existing token: " + username); //returns the username, no issues here
IDMappingExtUtils.traceString("username from existing token: " + emailAddress ); //returns null
in the reverse proxy config file, I have the below attributes for eperson under TAM SVC Creds,
[TAM_CRED_ATTRS_SVC:eperson]
emailAddress = mail
mobilenumber = mobile
username = uid
Not sure why it is giving the null value for emailAddress.
------------------------------
Venkat
------------------------------