Uploaded image for project: 'Identity Gateway'
  1. Identity Gateway
  2. OPENIG-245

Support Request restore in StaticRequestFilter

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.0
    • 3.0.0
    • Core
    • Sprint 39

    Description

      The current StaticRequestFilter simply replace to original Request with a new created one.
      If you need to save the original Request, you have to use an Assignment filter:

      {
          "name": "SaveAndRestoreOriginalRequest",
          "type": "AssignmentFilter",
          "config": {
              "onRequest": [
                  {
                      "target": "${exchange.linkedinRequest}",
                      "value": "${exchange.request}",
                  }
              ],
              "onResponse": [
                  {
                      "target": "${exchange.request}",
                      "value": "${exchange.linkedinRequest}",
                  }
              ]
          }
      }
      

      This is not user friendly. StaticRequestFilter should, by default, save and restore the original request, and optionally, if requested, keep the current behavior of throwing away the original request.

      Attachments

        Activity

          People

            guillaume.sauthier Guillaume Sauthier
            guillaume.sauthier Guillaume Sauthier
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: