16812: Handoff token using query param
authorPeter Amstutz <peter.amstutz@curii.com>
Thu, 15 Oct 2020 21:21:27 +0000 (17:21 -0400)
committerPeter Amstutz <peter.amstutz@curii.com>
Thu, 15 Oct 2020 21:21:27 +0000 (17:21 -0400)
commitae94f4d8463ff6350329e802cb902c8dad96a710
treeb69acd115b484427afbb87d6b36fd4922f9cf399
parent9525ed95bef2a8de63b48a0682c342465d29bae9
16812: Handoff token using query param

Need to pass the token to keep-web without it being "sticky" in the
URL bar.  Using a query param accomplishes this, because keep-web
knows to strip the api_token query parameter and respond with redirect
and a cookie which the browser can use to fetch the file safely.

Also distinguish between KeepWebService (now the download service) and
KeepWebInlineService (the one that will serve content that can be
displayed inline in the browser if it is safe to do so).

Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>
src/common/config.ts
src/common/redirect-to.test.ts
src/common/redirect-to.ts
src/store/auth/auth-action-session.ts
src/store/store.ts
src/views-components/context-menu/actions/collection-file-viewer-action.tsx
src/views-components/context-menu/actions/download-action.tsx
src/views-components/context-menu/actions/download-collection-file-action.tsx
src/views-components/context-menu/actions/file-viewer-action.tsx
src/views-components/context-menu/actions/helpers.ts