Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-6976

OAuth2 Error Page on oauth2/authorize with valid params and cookie

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 13.0.0
    • Fix Version/s: 13.0.0
    • Component/s: oauth2, OpenID Connect
    • Environment:
      EC2 Ubuntu 64 VM, Tomcat 7, JDK 1.7, OpenAM 13.0.0-SNAPSHOT Build ${svn-revision.revision} (2015-September-28 15:34)
    • Sprint:
      Sprint 95 - Team Tesla

      Description

      Created OAuth2 provider and registered a client app as an OAuth2 agent, and configured required scopes.

      Tried to access the oauth2/authorize page after being authenticated, it returns the "OAuth2 Error Page".

      More precisely, the following request (with a valid Cookie):
      curl --header "Cookie: ****" https://openam.example.com/openam/oauth2/authorize?response_type=code\&scope=openid%20email\&client_id=XXXX\&redirect_uri=YYYY\&nonce=ZZZZ

      returns 400 with the following response content:

      <html lang="en">
      <head>
      <meta charset="utf-8">
      <meta http-equiv="X-UA-Compatible" content="IE=edge">
      <meta name="viewport" content="width=device-width, initial-scale=1">
      <meta name="description" content="OAuth2 Error">
      <title>OAuth2 Error Page</title>
      </head>

      <body>
      <div id="wrapper" class="hidden">Loading...</div>
      <footer id="footer" class="footer hidden"></footer>
      <script type="text/javascript">
      pageData = {
      baseUrl: "https://protectserve.openrock.org:8043/openam/XUI",
      error:

      { description: "Internal Server Error", message: "server_error" }

      }
      </script>
      <script data-main="https://protectserve.openrock.org:8043/openam/XUI/main-authorize" src="https://protectserve.openrock.org:8043/openam/XUI/libs/requirejs-2.1.14-min.js"></script>
      </body>
      </html>

        • I tried multiple response types, scopes, etc. Same error is observed.

        Attachments

          Activity

            People

            • Assignee:
              jamesphillpotts James Phillpotts
              Reporter:
              hahmadi hadi hahmadi
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: