legacy-knowledge-base
Publicado Jul. 25, 0002

Users without Admin role cannot initiate SSO on the SP when using expando fields

written-by

Aaron Wang

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

Issue

  • When using expando field as "Name Identifier Attribute Name=expando:concurid", user without Administrator role can not initiate SSO. Steps to reproduce:
    • On IdP end
      1. Add a custom field 'field1' for user. 
      2. Go to SAML Admin > Service Provider Connections, make sure the "Name Identifier Format=Persistent", "Name Identifier Attribute Name=expando:field1".
      3. Change the Authenticate Method to "Screen Name" in the Instance settings.
    • On SP end
      1. go to SAML Admin > Service Provider Connections. Make sure "Name Identifier Format=Persistent"
      2. Change the Authenticate Method to "Screen Name" in the Instance settings.
    • In the case that SP initiated SSO, if current user does not have Administrator role, there will be UI error "Unable to process SAML request"and the following error is reported in log
      2021-01-29 02:32:24.451 ERROR [http-nio-8080-exec-2][BaseSamlStrutsAction:59] Screen name must not be null for user 36220
    • When checking the SAML response, the value "null" can be observed.
      <saml2:NameID Format="urn:oasis:names:tc:SAML:2.0:nameid-format:persistent">null</saml2:NameID>

Environment

  • Liferay DXP 7.1

Resolution

  • The issue is caused by the User does not have permission to read the custom field value so the screen name comes across as null. 
  • To Resolve the issue, grant 'User' role expando field "View" permission using the following steps:
    1. Go to Control Panel > Configuration > Custom Fields > User
    2. Edit the permissions to your customized expando field and add the "View" permission to the User role
did-this-article-resolve-your-issue

legacy-knowledge-base