Skip to main content
Version: 3.2.0

Box and web download of Tower deposits

Overview​

IP MagicBox and the web app can download a file Tower stored, without copying storage secrets to BCYIP.

How it works​

POST /api/v1/files/presign accepts the Box/web Bearer token, asks neo once for document access (and companyId), checks that company against Tower activation, Heads the object with Tower credentials, and returns a short-lived GET URL. A disposable web token is only used on that single neo call.

Key files​

  • src/protocol/files/files.service.ts — presign flow, one neo call, company match
  • src/protocol/files/files.controller.ts / files.module.ts — route
  • src/protocol/files/bcyip-user.guard.ts — activation required, no /user
  • src/protocol/bcyip/api.ts — fetchAccessibleDocument
  • src/protocol/storage/* — Head + sign per storage type
  • src/protocol/utils/deposit-fields.ts — resolve download object keys

Known issues​

  • None recorded in the 3.2.0 fragment.

Next steps​

  • None from this release.