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

Make WOPI work with OAuth authentication when not logged in with MS Office

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Major
    • Resolution: Won't Do
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: WOPI

      Description

      This is the current behavior observed when using an access_token to authenticate the WOPI URLs

      1. Generate an access token
      2. Build a WOPI link with the access token like https://dev.apps.prod.nuxeo.io/nuxeo/ui?access_token=OiTGMYykPes7XIyBX1QTPMwjXMaKo7ap&wopiUrl=https://dev.apps.prod.nuxeo.io/nuxeo/wopi/edit/default/1b24f56e-9e31-494e-a85a-8f2ba2efc867/file:content?access_token=OiTGMYykPes7XIyBX1QTPMwjXMaKo7ap
      3. the call to this URL detects that no Office session is opened
      4. it redirects to https://office.live.com/start/Word.aspx?h4b=Nuxeo&c4b=2&eurl=https://dev.apps.prod.nuxeo.io/nuxeo/wopi/edit/default/1b24f56e-9e31-494e-a85a-8f2ba2efc867/file:content&furl=https://dev.apps.prod.nuxeo.io/nuxeo/nxfile/default/1b24f56e-9e31-494e-a85a-8f2ba2efc867/file:content/test.docx?changeToken=28-6&hp=xte8tZe6schmaQwSgLcNSOqx4cmehWA6ly0j11/xtrs=
      5. after clicking on Sign in, it redirects to https://dev.apps.prod.nuxeo.io/nuxeo/wopi/edit/default/1b24f56e-9e31-494e-a85a-8f2ba2efc867/file:content&furl=https://dev.apps.prod.nuxeo.io/nuxeo/nxfile/default/1b24f56e-9e31-494e-a85a-8f2ba2efc867/file:content/test.docx?changeToken=28-6&hp=xte8tZe6schmaQwSgLcNSOqx4cmehWA6ly0j11/xtrs=
      6. this URL does not contain any information to authenticate the request => redirection to Nuxeo login page

      Expected behavior:

      After signing in to MS Office, the office document is opened in MS Office by using the user session which corresponds to the access_token parameter passed to the initial WOPI link

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: