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

Unable to call JSON WS services using OAuth authentication on 6.1 EE: {"exception":"Invalid authentication token"}

    Details

      Description

      Relates to LPS-44204.

      Steps to reproduce:
      1, Deploy OAuth plugin from liferay-plugins-ee repository, branch ee-6.1.x
      2, Add an "ABCD application" in Control Panel -> OAuth Admin
      3, Display details of the "ABCD application"
      4, Open OAuth testing application at http://topolik.cz/oauth/, click "Clear All" button
      5, Copy & Paste consumer key + secret into the OAuth testing application
      6, Follow the steps to test localhost:8080/api/jsonws/classname/fetch-class-name/value/com.liferay.portal.model.User

      Expected result: The OAuth testing applications succeed, in the end opens a window with correct JSON WS call result, example: {"classNameId":13,"value":"com.liferay.portal.model.User"}
      Actual result: {"exception":"Invalid authentication token"}

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                5 years, 44 weeks, 4 days ago

                Packages

                Version Package
                6.1.X EE