Uploaded image for project: 'Planet4'
  1. Planet4
  2. PLANET-3160

EN plugin: Make the front end submition of forms to use js, session token and Frontend API key

    XporterXMLWordPrintable

    Details

    • Type: Task
    • Status: CLOSED
    • Priority: Should have
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 1.42
    • Story Points:
      16
    • Sprint:
      Sprint #72
    • Section:
      Block: EN Form
    • Track:
      Development
    • Repositories:
      planet4-plugin-engagingnetworks

      Description

      Following the discussions with EN (Dan) about rate limiting, we will have to use a second API user with limited permissions to create the token for front end submission of forms.

      Dan from EN has already sent instructions to Angelos and Kyriakos about how to implement this.

      (Prerequisit: PLANET-3159)

      This task is the following:

      If a frontend API key and secret are set in the settings, then

      When an api form is shown, using the frontend api key, request a session id (if one does not already exist, since it is valid for 1 hour).

      Then make the form submit with the JS and the session id, instead of sending it back to the wp server.

       

        Gliffy Diagrams

          Attachments

            Activity

              People

              Assignee:
              kdiamant Kyriakos diamantis
              Reporter:
              kkokkoro Konstantinos Kokkorogiannis
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: