Hi
you can review what attributes are available in stsuu, mainly part of credentials and then later you can fetch them and use like this in pretoken rule . stsuu will give you detailed idea on what's available to fetch
if(request_type =='authorization' && response_type =='code')
{
//code to get all the attributes in pretoken rule
IDMappingExtUtils.traceString(" List all Attributes in STSUU of type urn:ibm:names:ITFIM:5.1:accessmanager");
var attribute_list=stsuu.getAttributeContainer().getAttributesByType("urn:ibm:names:ITFIM:5.1:accessmanager");
IDMappingExtUtils.traceString(" Lgot attribute list");
for( var i=0;i< attribute_list.length;i++)
{
attr_name=attribute_list[i].getName();
IDMappingExtUtils.traceString("Name of Attribute:"+attr_name);
attr_values=attribute_list[i].getValues();
if(attr_values != null && attr_values.length >0)
{
for(var j=0;j<attr_values.length;j++)
{
IDMappingExtUtils.traceString("Printing Value:"+attr_values[j]);
}
}
}
}
------------------------------
Tushar
Tushar
------------------------------
Original Message:
Sent: Tue February 25, 2020 05:14 AM
From: mohamed ghonem
Subject: ISAM: get request attributes in PreTokenGeneration
I want to check all attributes in request like attributes in header before generate access token so how can get all attributes from request in PreTokenGeneration mapping rules
------------------------------
mohamed ghonem
------------------------------