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

OAuth 2 authorizing is not working when SAML is enabled

    Details

    • Fix Priority:
      4
    • JDK:
      Adopt OpenJDK 8
    • Application Servers:
      Apache Tomcat 9.0.x
    • Browsers:
      Chrome 86
    • Databases:
      MySQL 5.7
    • Device Type:
      Desktop

      Description

      When SAML is enabled the OAuth 2 authorizing through the IdP portal fails on permission error.  (Both with and without a synchronized user)

      Pre-condition:

      • Create a virtual instance (www.able.com)
      • Set up a SAML connection based on this document

      Reproduction Steps:

      1. Log in on the IdP portal (localhost.com)
      2. Create a new user ([email protected])
      3. Log out
      4. Log in on the SP portal
      5. Add a new external application under Security / OAuth2 Administration
      6. Application name: Third-party Application
      7. Client Id: client23
      8. Client secret Id: client123
      9. Log out from the SP portal
      10.  Try to authorize your new application (http://martamedio.com/oauth2-tester/), with [email protected] user

      Expected Result

      Authorization prompt is expected after getting redirected to SP after logging in on the IdP Portal

      Actual Result

      After getting redirected to the SP portal Permission Error popup will appear


       

        Attachments

        1. error.png
          error.png
          80 kB
        2. fixed.png
          fixed.png
          878 kB

          Issue Links

            Activity

              People

              Assignee:
              marcell.weller Marcell Weller
              Reporter:
              marcell.weller Marcell Weller
              Participants of an Issue:
              Recent user:
              Brian Wulbern
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                12 weeks, 3 days ago

                  Packages

                  Version Package
                  Master