Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-92599

Basic authentication not working with REST APIs - POC and config guide

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Won't Fix
    • Affects Version/s: 7.1.10.1 SP1
    • Fix Version/s: 7.1.X
    • Component/s: Core Infrastructure
    • Labels:
    • Branch Version/s:
      7.1.x
    • Fix Priority:
      1

      Description

      Please create a POC and a configuration guide on how to make this scenario work, as with the involvement of EE we could recreate the issue on FP6. 
      Thanks.

      Current scenario:

      1. Create a REST webservice in a module
      2. Configure CXF Endpoint and REST Extender to expose it
      3. Set Basic Authentication on the endpoints
      4. Try to call the service with basic authentication header added to the request e.g.:  with curl

       Expected result: the service call completes and we receive HTTP 200 message

       Actual result: HTTP 403 error message received

        Attachments

        1. config1.png
          config1.png
          59 kB
        2. config2.png
          config2.png
          84 kB
        3. rest.call.png
          rest.call.png
          14 kB
        4. ts.liferay-1.0.0.jar
          3 kB

          Activity

            People

            • Assignee:
              csaba.botos Csaba Botos (Inactive)
              Reporter:
              csaba.botos Csaba Botos (Inactive)
              Participants of an Issue:
              Recent user:
              Csaba Botos (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                7 weeks, 1 day ago