Hello Community,
I was wondering if you could help me with this (I think) small problem. If the question was already asked I am sorry but I tried my best to search for a solution before.
So my problem is : in my module chain I have the following elements
1- Default IVCred Token (mode : validate)
2- Default Map Module (mode : map)
3- Default SAML 2.0 Token (mode : issue)
Basically in the map module, I use a script to manipulate data based on what our partner needs because sometimes I need to do some rewrite from IDP attributes.
I need to return an attribute's value with the character "<" in it, however no matter what I tried I still see this
< in the header:
<saml:Attribute Name="Just_To_Be_Sure" NameFormat="urn:ibm:names:ITFIM:5.1:accessmanager"><saml:AttributeValue xsi:type="xs:string">BLABLABLA -
<</saml:AttributeValue>
(mapping source :
function cleanup_multiple_attributes(cleanup_string) {
cleanup_string = cleanup_string .replace(/</g,/</);
return unescape(cleanup_string);
}
temp = unescape(cleanup_multiple_attributes("<"));
stsuu.addAttribute(new Attribute("Just_To_Be_Sure", "urn:ibm:names:ITFIM:5.1:accessmanager", "BLABLABLA - " + unescape(temp)));
)
I was wondering if there is a way to add such a character (< or >) as strings in the token values. If this is not possible, do you know if there is a way add multiple values for one attribute, something like this :
<saml:Attribute Name="GROUP_MEMBERSHOP">
<saml:AttributeValue xsi:type="xs:string">GROUP1</saml:AttributeValue>
<saml:AttributeValue xsi:type="xs:string">GROUP2</saml:AttributeValue>
<saml:AttributeValue xsi:type="xs:string">GROUP3</saml:AttributeValue>
</saml:Attribute>
Thank you very much,
------------------------------
Christophe Agostini
------------------------------