留言板

Liferay SAML passing attribute value

Adeel Sharon,修改在9 年前。

Liferay SAML passing attribute value

New Member 帖子: 9 加入日期: 14-4-21 最近的帖子
Hi
I am trying to implement SAML SSO with Liferay SAML plugin (Liferay as IdP) with a third party acting as SP.
I have followed the steps mentioned in link - http://www.liferay.com/web/mika.koivisto/blog/-/blogs/getting-started-with-liferay-saml-2-0-identity-provider
regarding how to do a SSO with SalesForce.com.
All of these work perfectly.

The problem I am facing is I need to pass custom attributes like firstName, PlanName, DateOfBirth etc as payload with SAML response to SP's SAML request.
I have tried the settings in portal-ext.properties as mentioned below

saml.idp.metadata.attribute.names[https\://saml.salesforce.com]=screenName,firstName,lastName,emailAddress,uuid

But this does not create attributes properly in the SAML responce. Instead of putting them properly and separately inside <saml:AttributeStatement> tag , it is clubbing all of them in one single attribute.
Also how to pass the value to this attributes ?

Please advise if any of you worked on a similar issue.
Raghuveer Kanakamedala,修改在9 年前。

RE: Liferay SAML passing attribute value

New Member 帖子: 5 加入日期: 13-7-29 最近的帖子
Hi Adeel,

Try new line delimiter instead of comma as shown below.
saml.idp.metadata.attribute.names[https\://saml.salesforce.com]=screenName\nfirstName\nlastName\nemailAddress\nuuid


The values are retrieved from User object.
Adeel Sharon,修改在9 年前。

RE: Liferay SAML passing attribute value

New Member 帖子: 9 加入日期: 14-4-21 最近的帖子
Thanks Raghuveer.
About the custom attributes , looks like we cannot pass value to custom attributes this way. correct ?

#saml.idp.metadata.attribute.names[https\://saml.salesforce.com]=screenName\nfirstName\nlastName\nemailAddress\nuuid\nexpando:customField1

All except custom field's (customField1) value getting properly populated in the SAML response.
Do you know how to pass the value for this custom field (customField1) ?

Thanks
Adeel
thumbnail
Naresh Reddy Kallamadi,修改在6 年前。

RE: Liferay SAML passing attribute value

Regular Member 帖子: 120 加入日期: 14-7-9 最近的帖子
Hi Brent,

I am also trying same thing I want t pass org_id and portal_id to sales force as these are required for sales force to land on specific community page.

Can you please let me know the procedure to make it work out?

Thanks,
Naresh kallamadi.