掲示板

Liferay SAML passing attribute value

9年前 に Adeel Sharon によって更新されました。

Liferay SAML passing attribute value

New Member 投稿: 9 参加年月日: 14/04/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.
9年前 に Raghuveer Kanakamedala によって更新されました。

RE: Liferay SAML passing attribute value

New Member 投稿: 5 参加年月日: 13/07/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.
9年前 に Adeel Sharon によって更新されました。

RE: Liferay SAML passing attribute value

New Member 投稿: 9 参加年月日: 14/04/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
6年前 に Naresh Reddy Kallamadi によって更新されました。

RE: Liferay SAML passing attribute value

Regular Member 投稿: 120 参加年月日: 14/07/09 最新の投稿
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.