Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-10306

Automation client: add an API to get a session using a token

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.6.0-HF10, 5.7.1
    • Component/s: Automation
    • Impact type:
      API added
    • Upgrade notes:
      Hide

      Added:

      • AutomationClient#getSession(String token)
      • AutomationClient#getSession(TokenCallback cb)
      Show
      Added: AutomationClient#getSession(String token) AutomationClient#getSession(TokenCallback cb)

      Description

      We need to be able to make automation calls using the token based authentication plugin done in NXP-10268.
      The principle is to add an API to the AutomationClient to allow getting a client Session following these steps:

      • First acquire a token remotely from the server (thanks to the token authentication plugin for example) using parameters gathered by the client.
      • Store this token locally for later use.
      • Use the token to get a Session passing it as a request header, readable by the token authentication plugin.

      A TokenCallback interface will define the API to gather the token parameters, acquire a remote token, save it locally, read it locally.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 3 hours
                  3h
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 hours
                  3h