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

NginxAgent redirects to wrong URL after OpenAM login (wrong value for goto keyword)

    XMLWordPrintable

    Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Agents-4.0.0
    • Agents-4.1.0
    • web agents
    • Nginx1.9.9 OpenAM13.0.0
    • Rank:
      1|hzqwon:

      Description

      Trying to access /Resource87.html on a Nginx 1.9.9 configured with WPA (nginx web-agent module):
      1. We get properly redirected to AM login
      2. We get redirected back to wrong URL '/' on Nginx

      Note that, at step 1, in the QS: goto=http%3A%2F%2Fbigmac.internal.forgerock.com%3A8082%2F

      goto attribute is wrongly set to 'http://bigmac.internal.forgerock.com:8082/'
      while we would expect it to be set to 'http://bigmac.internal.forgerock.com:8082/Resource87.html'

      T 127.0.0.1:58343 -> 127.0.0.1:8082 [AP]
      GET /Resource87.html HTTP/1.1.
      Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8.
      Accept-Encoding: gzip, deflate, sdch.
      Accept-Language: en-US,en;q=0.8,fr;q=0.6.
      Content-Type: application/x-www-form-urlencoded.
      Connection: keep-alive.
      Host: bigmac.internal.forgerock.com:8082.
      .
      
      
      T 127.0.0.1:8082 -> 127.0.0.1:58343 [AP]
      HTTP/1.1 302 Moved Temporarily.
      Server: nginx/1.9.9.
      Date: Mon, 01 Feb 2016 15:06:40 GMT.
      Content-Length: 0.
      Connection: close.
      Location: http://bigmac.internal.forgerock.com:8080/openam/UI/Login?realm=/myrealm&goto=http%3A%2F%2Fbigmac.internal.forgerock.com%3A8082%2F.
      .
      
      
      T 127.0.0.1:58346 -> 127.0.0.1:8082 [AP]
      GET / HTTP/1.1.
      Cookie: amlbcookie=01; iPlanetDirectoryPro=AQIC5wM2LY4Sfcx4ddGxNySNyuOInwQhGCnORTv5FaAYntI.*AAJTSQACMDEAAlNLABQtODQ2MzkzMjQxMTEwNzk1OTY2OAACUzEAAA..*.
      Connection: keep-alive.
      Host: bigmac.internal.forgerock.com:8082.
      Accept: */*.
      .
      
      
      T 127.0.0.1:8082 -> 127.0.0.1:58346 [AP]
      HTTP/1.1 200 OK.
      Server: nginx/1.9.9.
      Date: Mon, 01 Feb 2016 15:06:40 GMT.
      Content-Type: text/html.
      Content-Length: 612.
      Last-Modified: Mon, 01 Feb 2016 14:41:48 GMT.
      Connection: keep-alive.
      ETag: "56af6eac-264".
      Accept-Ranges: bytes.
      .
      
      
      T 127.0.0.1:8082 -> 127.0.0.1:58346 [AP]
      <!DOCTYPE html>
      <html>
      <head>
      <title>Welcome to nginx!</title>
      <style>
          body {
              width: 35em;
              margin: 0 auto;
              font-family: Tahoma, Verdana, Arial, sans-serif;
          }
      </style>
      </head>
      <body>
      <h1>Welcome to nginx!</h1>
      <p>If you see this page, the nginx web server is successfully installed and
      working. Further configuration is required.</p>
      
      <p>For online documentation and support please refer to
      <a href="http://nginx.org/">nginx.org</a>.<br/>
      Commercial support is available at
      <a href="http://nginx.com/">nginx.com</a>.</p>
      
      <p><em>Thank you for using nginx.</em></p>
      </body>
      </html>
      

        Attachments

          Activity

            People

            nick.james Nicholas James
            sberthol Sebastien Bertholet [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: