Skip to content

Commit

Permalink
Merge pull request #31 from Kevinwochan/master
Browse files Browse the repository at this point in the history
added support for AWS session tokens
  • Loading branch information
IbrahimCSAE authored Jan 16, 2024
2 parents df99bdd + e28dde7 commit 6042afc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions proxy/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const headers = {
const awsCredentials = {
accessKeyId: process.env.AWS_ACCESS_KEY_ID,
secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY,
sessionToken: process.env.AWS_SESSION_TOKEN
};

const proxy = createServer(async (req, res) => {
Expand Down
1 change: 1 addition & 0 deletions src/imageLoader/awsCredentials.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const awsCredentials = (config) => {
const credentials = {
secretAccessKey: healthlake?.awsSecretAccessKey || config.awsSecretAccessKey,
accessKeyId: healthlake?.awsAccessKeyID || config.awsAccessKeyID,
sessionToken: healthlake?.awsSessionToken || config.awsSessionToken,
service: "medical-imaging"
};

Expand Down
1 change: 1 addition & 0 deletions src/utils/DicomTreeClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export type HealthLake = {
unknown > ;
awsAccessKeyID: string;
awsSecretAccessKey: string;
awsSessionToken ? : string;
datastoreID ? : string;
region ? : string;
endpoint ? : string;
Expand Down

0 comments on commit 6042afc

Please sign in to comment.