Foros de discusión

Liferay SAML passing attribute value

Adeel Sharon, modificado hace 9 años.

Liferay SAML passing attribute value

New Member Mensajes: 9 Fecha de incorporación: 21/04/14 Mensajes recientes
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, modificado hace 9 años.

RE: Liferay SAML passing attribute value

New Member Mensajes: 5 Fecha de incorporación: 29/07/13 Mensajes recientes
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, modificado hace 9 años.

RE: Liferay SAML passing attribute value

New Member Mensajes: 9 Fecha de incorporación: 21/04/14 Mensajes recientes
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, modificado hace 6 años.

RE: Liferay SAML passing attribute value

Regular Member Mensajes: 120 Fecha de incorporación: 9/07/14 Mensajes recientes
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.