Skip to Content
avatar image
Former Member

SAML2- How to read custom attributes in SAPUI5

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers