Forums de discussion

Liferay SAML passing attribute value

Adeel Sharon, modifié il y a 9 années.

Liferay SAML passing attribute value

New Member Publications: 9 Date d'inscription: 21/04/14 Publications récentes
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, modifié il y a 9 années.

RE: Liferay SAML passing attribute value

New Member Publications: 5 Date d'inscription: 29/07/13 Publications récentes
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, modifié il y a 9 années.

RE: Liferay SAML passing attribute value

New Member Publications: 9 Date d'inscription: 21/04/14 Publications récentes
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, modifié il y a 6 années.

RE: Liferay SAML passing attribute value

Regular Member Publications: 120 Date d'inscription: 09/07/14 Publications récentes
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.