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

OAuth - test-oauth-portlet fails to authenticate

    Details

      Description

      Steps to reproduce:

      1. Deploy oauth-portlet and test-oauth-portlet.
      2. Go to OAuth Admin, add an application.
      3. Go to Service Access Policy, edit "SYSTEM_DEFAULT" profile and allow com.liferay.portal.kernel.service.CompanyService#getCompanyByWebId
      4. Add a Test OAuth portlet.
      5. Set Consumer Key and Consumer Secret.
      6. Uncheck Use Server Provided Callback URL.
      7. Authorize Access.
      8. Grant Access.

      Actual results:
      Authentication Failed.
      When Use Server Provided Callback URL is true, the user is redirected to callback url and no tokens can be found in OAuth Authorizations.

      For ee-7.0.x, it needs portal-compat-hook, but no portal-compat-hook in ee-7.0.x anymore.

      Note: without LPS-63848 the WAR must be repackaged, i.e. all JARs inside WAR's WEB-INF/lib should be unzipped into war's WEB-INF/classes and then the WAR file can be copied to the deploy folder.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  2 years, 51 weeks, 2 days ago

                  Packages

                  Version Package
                  6.2.X EE
                  7.0.0 CE RC1