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

Alert text 'Error: undefined' when click Launch Request with OAuth2

    Details

      Description

      Steps to reproduce:
      1. Start 73 bundle and login with test
      2. Add a new OAuth2 application
      callback url:http://martamedio.com/oauth2-tester/?url=http://localhost:8080&client_id=abc123
      client Id: abc123
      client Secret: abc123
      Scopes: Check Portal Services>everything.read.userprofile
      3. Open http://martamedio.com/oauth2-tester/
      4. Type client Id and click Authorize My Application
      5. Click Authorize
      6. Type client secret and click Obtain OAuth2 Access
      7. Click Launch Request

      Except result: Return the current user info
      Actual result: Alert 'Error: undefined' and got the below error in console log.

      00:58:40,974 ERROR [http-nio-8080-exec-1][JSONAction:90] User 0 did not provide a valid CSRF token for com.liferay.portal.jsonwebservice.JSONWebServiceServiceAction:/user/get-current-user
      

      Affect test:
      LocalFile.OAuth2#AuthorizeExternalApplication
      LocalFile.OAuth2#RefreshTokenTime

      Test it on:
      Tomcat 9.0.37 + MySQL 5.7. Portal 7.3.x GIT ID: 00206aafdb435a46a3aa76d4432b9b728d58790b.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              marta.medio Marta Medio
              Reporter:
              della.wang Della Wang (Inactive)
              Participants of an Issue:
              Recent user:
              Brian Wulbern
              Engineering Assignee:
              Marta Medio
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                16 weeks, 5 days ago

                  Packages

                  Version Package