Skip to content

Commit

Permalink
3.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
birm committed Sep 5, 2019
1 parent 7c1b27d commit 310bd92
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 10 deletions.
11 changes: 10 additions & 1 deletion Deps/auth_service/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ var SECRET = process.env.SECRET
var EXPIRY = process.env.EXPIRY || "1d"
var JWK_URL = process.env.JWKS
var KEY_FIELD = process.env.KEY_FIELD || "accessCollection"
var AUD = process.env.AUD || false
var ISS = process.env.ISS || false

var jwks_client = false
console.log(JWK_URL)
Expand Down Expand Up @@ -108,7 +110,14 @@ function jwk_token_trade(check_key, sign_key){
function token_trade(check_key, sign_key){
return function(req,res){
var THISTOKEN = getToken(req)
jwt.verify(THISTOKEN, check_key, function(err, token){
let jwt_options = {}
if (AUD){
jwt_options.audience = AUD
}
if (ISS){
jwt_options.issuer = ISS
}
jwt.verify(THISTOKEN, check_key, jwt_options, function(err, token){
if (err){
res.status(401).send(err)
} else {
Expand Down
23 changes: 15 additions & 8 deletions dev-pathdb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ services:
image: mongo
container_name: ca-mongo
restart: unless-stopped
volumes:
- ./db:/data/db
logging:
driver: none
idxMongo:
Expand All @@ -26,20 +28,18 @@ services:
restart: unless-stopped
logging:
driver: none
ports:
-"8080:8080"
-"9099:9099"
ports: ["8080:8080", "9099:9099"]
volumes:
- ./config/bindaas_projects/:/root/bindaas/bin/projects/
- ./config/bindaas.config.json:/root/bindaas/bin/bindaas.config.json
iip:
build: "https://github.com/camicroscope/iipImage.git#develop"
build: "https://github.com/camicroscope/iipImage.git#v3.2.0"
container_name: ca-iip
restart: unless-stopped
volumes:
- ./images/:/data/images/
security:
build: "https://github.com/camicroscope/Security.git#develop"
build: "https://github.com/camicroscope/Security.git#v3.4.6"
container_name: ca-security
restart: unless-stopped
ports: ["4010:4010"]
Expand All @@ -53,19 +53,20 @@ services:
logging:
driver: none
pathdb:
build: "https://github.com/camicroscope/PathDB.git#develop"
build: "https://github.com/SBU-BMI/PathDB.git#develop"
container_name: quip-pathdb
restart: unless-stopped
ports: ["443:443","80:80"]
volumes:
- ./data:/data/
- ./images/:/data/pathdb/files/wsi
- ./config/pathdb:/quip/web/sites/default
- ./jwt_keys/:/keys/
- ./config:/config
command:
- /config/pathdb_pre.sh
imageloader:
build: "https://github.com/SBU-BMI/ImageLoader.git#1.0.0"
build: "https://github.com/SBU-BMI/ImageLoader.git#1.1.0"
container_name: quip-imageloader
volumes:
- ./data:/data/
Expand All @@ -78,4 +79,10 @@ services:
container_name: quip-segloader
volumes:
- ./data/segmentation_results:/data/segmentation_results

heatmaploader:
build: "https://github.com/SBU-BMI/uploadHeatmaps.git#v1.5.0"
container_name: quip-hmloader
ports: ["27017:27017"]
volumes:
- ./data:/mnt/data/

2 changes: 1 addition & 1 deletion quip-pathdb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ services:
logging:
driver: none
pathdb:
build: "https://github.com/SBU-BMI/PathDB.git#1.0.10"
build: "https://github.com/SBU-BMI/PathDB.git#1.1.0"
container_name: quip-pathdb
restart: unless-stopped
ports: ["443:443","80:80"]
Expand Down

0 comments on commit 310bd92

Please sign in to comment.