cancel
Showing results for 
Search instead for 
Did you mean: 

SAML2- How to read custom attributes in SAPUI5

Former Member

Hello,

I have successfully connected external IDP to SCP and am trying to pass assertion attributes in SAML token coming back from AD.

"saml2:Attribute Name="first_name" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic"

saml2:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">BBBB</saml2:AttributeValue"

"/saml2:Attribute> <saml2:Attribute Name="customer_id" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic"

saml2:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">AAAA</saml2:AttributeValue> </saml2:Attribute"

Using sap.ushell.Container.getService("UserInfo").getUser().getFirsname(), I can get the first name. But how to read customer_id. is there a way I can call a function with parameter=customer_id and get associated value. Thanks

nerevar
Participant
0 Kudos

answer very much needed

Accepted Solutions (0)

Answers (1)

Answers (1)

same issue . any updates please ?