Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-25286

Add Method to BasicLTIUtil to help in mapping URLs when behind a proxy server

    XMLWordPrintable

    Details

    • Type: Task
    • Status: CLOSED
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.9.3
    • Fix Version/s: 2.9.4 [Tentative], 10.0
    • Component/s: BasicLTI
    • Labels:
      None

      Description

      When a server is running behind a proxy - sometimes the URL in the request object is simply wrong but the software knows that the URL should be. This adds two methods:

      BasicLTIUtil.getRealPath(request, "https://www.mooc.edu");
      BasicLTIUtil.getRealPath("http://serv01.mooc.edu/path/blah/", "https://www.mooc.edu");

      The second parameter is the URL where the world thinks the server is. What you get back is the URL that you were actually called from beyond the proxy rather than the URL the proxy may have called you.

      This is of particular value when validating an incoming OAuth message and giving it the URL to override the URL that is likely wrong in the HTTP request object:

      OAuthMessage oam = OAuthServlet.getMessage(request, realPath);

        Gliffy Diagrams

          Zeplin

            Attachments

              Activity

                People

                • Assignee:
                  csev Charles Severance
                  Reporter:
                  csev Charles Severance
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Integration