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

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

    Details

    • Type: New Feature New Feature
    • Status: Resolved
    • Severity: Minor 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.

        Issue Links

          Activity

          Show
          Antoine Taillefer added a comment - master: https://github.com/nuxeo/nuxeo-features/commit/51a879fa3156d7c66864c2a4f892f7b1dd381433
          Hide
          Antoine Taillefer added a comment -

          Backported on 5.6.0 for compatibility with the nuxeo-platform-login-token addon:
          https://github.com/nuxeo/nuxeo-features/commit/2d447ba36ec86338a4f1e2c6e23475825a857381

          Show
          Antoine Taillefer added a comment - Backported on 5.6.0 for compatibility with the nuxeo-platform-login-token addon: https://github.com/nuxeo/nuxeo-features/commit/2d447ba36ec86338a4f1e2c6e23475825a857381
          Hide
          Jenkins added a comment -

          Integrated in nuxeo-features-5.6.0 #302
          NXP-10306: Add API to get a client Session using a token (Revision 2d447ba36ec86338a4f1e2c6e23475825a857381)

          Result = SUCCESS

          Show
          Jenkins added a comment - Integrated in nuxeo-features-5.6.0 #302 NXP-10306 : Add API to get a client Session using a token (Revision 2d447ba36ec86338a4f1e2c6e23475825a857381) Result = SUCCESS
          Show
          Antoine Taillefer added a comment - Add missing @since 5.7 on new API: master: https://github.com/nuxeo/nuxeo-features/commit/685dcb4142aef572883c1003626017938d902331 5.6.0: https://github.com/nuxeo/nuxeo-features/commit/dbfa51c101436361751a3ce02eca29f1cac6c2cd
          Hide
          Jenkins added a comment -

          Integrated in nuxeo-features-5.6.0 #304
          NXP-10306: Add missing @since 5.7 on new API (Revision dbfa51c101436361751a3ce02eca29f1cac6c2cd)

          Result = SUCCESS

          Show
          Jenkins added a comment - Integrated in nuxeo-features-5.6.0 #304 NXP-10306 : Add missing @since 5.7 on new API (Revision dbfa51c101436361751a3ce02eca29f1cac6c2cd) Result = SUCCESS
          Hide
          Jenkins added a comment -

          Integrated in nuxeo-features-master #1135
          NXP-10306: Add missing @since 5.7 on new API (Revision 685dcb4142aef572883c1003626017938d902331)

          Result = SUCCESS

          Show
          Jenkins added a comment - Integrated in nuxeo-features-master #1135 NXP-10306 : Add missing @since 5.7 on new API (Revision 685dcb4142aef572883c1003626017938d902331) Result = SUCCESS

            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