Legacy Knowledge Base
Published Jul. 2, 2025

Unable to handle SAML Request

Written By

Sivakumar Perumal

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

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

  • After enabling the SAML, when the user is trying to log in, authentication failed with the following message in UI and in Server console.
    UI: "Unable to handle SAML Request"
    Server Console: 
    ERROR [http-nio-443-exec-81][BaseSamlStrutsAction:54] com.liferay.portal.kernel.exception.UserScreenNameException$MustNotBeNull: Screen name must not be null for user 14900028
    com.liferay.portal.kernel.exception.UserScreenNameException$MustNotBeNull: Screen name must not be null for user 14900028
     at com.liferay.portal.service.impl.UserLocalServiceImpl.validateScreenName(UserLocalServiceImpl.java:6962)
     at com.liferay.portal.service.impl.UserLocalServiceImpl.validate(UserLocalServiceImpl.java:6698)
     at com.liferay.portal.service.impl.UserLocalServiceImpl.addUserWithWorkflow(UserLocalServiceImpl.java:960)
     at com.liferay.portal.service.impl.UserLocalServiceImpl.addUser(UserLocalServiceImpl.java:774)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     at java.lang.reflect.Method.invoke(Method.java:498)

Environment

  • Liferay DXP 7.0

Resolution

  • The above error will come when the user doesn't have a screen name and trying to login in Liferay.
  • Key point: The user will be imported to Liferay only when all the required attributes are correctly mapped. Required attributes ensure successful authentication. Please refer to the required attribute below.
    Required_Attributes.JPG

Additional Information

  • Attribute mappings
    Attribute_Mappings.JPG
Did this article resolve your issue ?

Legacy Knowledge Base