Legacy Knowledge Base
Published Jun. 30, 2025

Can I allow some users to solely authenticate via a SAML, while the remaining users authenticate with their Liferay password?

Written By

Brian Suh

How To articles are not official guidelines or officially supporteddocumentation. They are community-contributed content and may not alwaysreflect the latest updates to Liferay DXP. We welcome your feedback toimprove How to articles!

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

Legacy Article

You are viewing an article from our legacy "FastTrack"publication program, made available for informational purposes. Articlesin this program were published without a requirement for independentediting or verification and are provided "as is" withoutguarantee.

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

Issue

  • This article describes a use case where it may be desirable to allow some users to authenticate through a SAML Identity Provider (IdP) only, while other users authenticate with their Liferay credentials in the Login portlet.

Environment

  • Liferay DXP 7.4

Resolution

  • While the solution to this is not explicitly available out of the box, a workaround is available.
  • After enabling Liferay as the Service Provider (SP) and connecting it to an Identify Provider (IdP), ensure that the  "Allow showing the login portlet" setting is enabled in the Service Provider settings. Doing this will allow the login portlet to be displayed when there are no matches to the SAML IdP login request.

    The official explanation of this property is as follows:
    "Allow the login portlet to appear when no SAML IdP is matched to the login request. Users in this scenario log in locally to Liferay DXP." 

  • If you would like the users who are authenticating via SAML to only be able to authenticate by SAML (as opposed to their Liferay password through the Login Portlet), change those users' Liferay passwords through Control Panel > Users and Organizations, modifying the passwords of those who wish to authenticate via SAML only.

  • What will happen is that the users who authenticate via SAML will have their credentials authenticated via the Identity Provider. The remaining users who do not have entries within the SAML IdP will be redirected to the fallback and authenticate with their Liferay credentials.

Additional Information

 

Did this article resolve your issue ?

Legacy Knowledge Base