Legacy Knowledge Base
Published Jul. 2, 2025

User Cannot Log In to Sync Client When SAML SSO and OAuth Are Enabled

Written By

Laura Li

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.

This article documents a known issue where users cannot log in to the Sync Client if both SAML and OAuth are enabled. As a result, authentication fails with a blank screen on Sync client. Repeated warning messages will print out in the server console:

Relay state exceeds 80 bytes, some application may not support this.

The specific conditions are:

  1. Start up two Liferay DXP platforms
  2. Deploy the Liferay SAML 2.0, the OAuth Provider and the Sync Client apps to both Liferay Digital Enterprise 7.0 platforms
  3. Follow the SAML Configuration Steps to configure the first Liferay DXP 7.0 platform as an Identity Provider (IdP) and the second platform as the Service Provider (SP)
  4. Verify that SSO/SLO using SAML protocols work
  5. On the SP instance, navigate to Control Panel → Configuration → Sync Connector Admin
  6. Enable OAuth
  7. Connect Liferay Sync to the SP

Resolution

Status: Workaround Available 

Currently we have a workaround to resolve this issue. Please add the following filter in {Liferay_Home}/tomcat/webapps/ROOT/WEB-INF/liferay-web.xml.

<filter-mapping>
        <filter-name>Auto Login Filter</filter-name>
        <url-pattern>/c/portal/oauth/authorize/*</url-pattern>
        <dispatcher>FORWARD</dispatcher>
        <dispatcher>REQUEST</dispatcher>
</filter-mapping>

You will observe the user can sign in to the Sync client successfully and only one warning message shows up in the server console.

Additional Information

LPS-76246 is raised to provide a permanent fix.

If using the latest version of the Liferay SAML 2.0 app, Fix Pack DE-32 or higher is required. See  this article: Important Changes and Support Information for Liferay Connector to SAML 2.0 Version 3.1.0 and Later.

Did this article resolve your issue ?

Legacy Knowledge Base