Legacy Knowledge Base
Published Jul. 2, 2025

How to configure liferay to invoke web services with Digest Auth

Written By

Roberto Díaz

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

  • How to configure Liferay to invoke web services with Digest Auth and use it in a client. As example we'll use POSTMAN

Environment

  • Liferay DXP 7.1+

Resolution

  • As example, we are going to configure the access to http://localhost:8080/api/jsonws/company/get-companies method in POSTMAN:
    1. Configure Digest Authentication:
      • System Settings > API Authentication > Digest Authentication
        • Force Digest Authentication: True
        • Enabled: True
        • Hosts Allowed: n/a
        • URLs Excludes: n/a
        • URLs Includes: /api/jsonws/company/*
    2. Configure a new System Access Policy:
      • Name: COMPANY_ACCESS
      • Enabled: true
      • Default: false
      • Title: COMPANY_ACCESS
      • Allowed Service Signatures:
        • Service Class:
        • Method Name: n/a
    3. Open a session in POSTMAN:
    4. Create a new request this way (select Digest Auth and add the user and pass)
    5. Uncheck the "Yes disable retrying" option
    6. Test that results are returned:

Captura_de_pantalla_2021-05-10_a_las_16.40.35.png

 

Did this article resolve your issue ?

Legacy Knowledge Base