Skip to Content
0

SAML2- How to read custom attributes in SAPUI5

Dec 15, 2017 at 03:45 PM

61

avatar image
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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers