Legacy Knowledge Base
Published Jul. 2, 2025

Authorising 'Data Source' using https/http

Written By

Kanchan Bisht

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

  • When authorizing from analytics, observed an error which seems like the 'HTTPS' request is getting converted to 'HTTP'.

Environment

  • Liferay 7.2

Resolution

  • The browser never makes a request, it's AC which makes a request to the server in order to pull data. Therefore, in order for the server to work with 'HTTPS' on AC, it will need a valid cert and not a self-signed cert.

  • There is nothing fundamentally different interacting with 'HTTP' vs 'HTTPS' servers.

Additional Information

  • A basic rundown of how the interaction between AC and DXP goes like this
    • AC sends a request to DXP to create a token
    • AC redirects the user to DXP instance for them to authorize
    • DXP authorizes request after a user clicks authorize
    • DXP redirects back to AC
    • AC uses a token to make API calls
  • Liferay 7.2 dxp-5, able to use token authentication. With token authentication, all the data is pushed from the DXP to AC so this wouldn't be a problem anymore. The OAuth connection method relies on pulling data from DXP to AC.
Did this article resolve your issue ?

Legacy Knowledge Base