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

test-oauth-portlet returns with 403 error

    Details

    • Fix Priority:
      2

      Description

      Steps to reproduce:

      1. Deploy OAuth plugin and OAuth test plugin
      2. Navigate to Control Panel > Configuration > OAuth Admin
      3. Click 'Add'
      4. Fill in the following:
        1. Application Name: oauth1
        2. Website URL: http://www.liferay.com
        3. Callback URI: http://localhost:8080
      5. Click 'Save'
      6. Click into oauth1 and copy the Consumer Key and Secret
      7. Add the OAuth test plugin to a page
      8. Fill in the Consumer Key and Consumer Secret
      9. Click 'Save'
      10. Click 'Authorize Access' and 'Grant Access'
      11. Fill in 'liferay.com' for web-id and click 'Test'

      Expected Result: A JSON array is returned with the correct matching domain (liferay.com)

      Actual Result: Portlet returns Response code: 403 and the following error shows up in console

      ERROR [http-nio-8080-exec-1][JSONWebServiceServiceAction:97] Access denied to com.liferay.portal.kernel.service.CompanyService#getCompanyByWebId
      

      Reproduced on:
      Tomcat 8.0.32 + MySQL 5.7.16
      Portal ee-7.0.x Git Hash: bddb98999bbf6e12ffa70177790de2f6794ce20d
      Plugins ee-7.0.x Git Hash: 76402786053bed28259b3fa0f7613cb14ded388f

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  3 years, 19 weeks, 6 days ago

                  Packages

                  Version Package