camicroscope / Caracal

Conslidated Backend, Auth, and Security Services for caMicroscope
GNU General Public License v3.0
15 stars 95 forks source link

Add Pathdb Secure IIP Handler #102

Closed birm closed 2 years ago

birm commented 3 years ago

Summary

Add a modified IIP handler which limits access based on user access, or more accurately cookie and header contents.

Motivation

Apply pathdb's more granular access control to the slide images

Testing

WIP. I'm almost sure a few things are wrong.

birm commented 3 years ago

Working on this noted error,

etchError: request to https://quip-pathdb//node/3?_format=json failed, reason: write EPROTO 139985662121792:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:332:

    at ClientRequest.<anonymous> (/src/node_modules/node-fetch/lib/index.js:1461:11)
    at ClientRequest.emit (events.js:314:20)
    at TLSSocket.socketErrorListener (_http_client.js:469:9)
    at TLSSocket.emit (events.js:314:20)
    at emitErrorNT (internal/streams/destroy.js:100:8)
    at emitErrorCloseNT (internal/streams/destroy.js:68:3)
    at processTicksAndRejections (internal/process/task_queues.js:80:21) {
  type: 'system',
  errno: 'EPROTO',
  code: 'EPROTO'
}
request to https://quip-pathdb//node/3?_format=json failed, reason: write EPROTO 139985662121792:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:332: