-
Type: Task
-
Status: Resolved
-
Priority: Major
-
Resolution: Won't Do
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: WOPI
-
Tags:
-
Backlog priority:800
This is the current behavior observed when using an access_token to authenticate the WOPI URLs
- Generate an access token
- 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
- the call to this URL detects that no Office session is opened
- 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=
- 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=
- 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