From 49b783be8d520b150686d8349ecff2c7a00b7452 Mon Sep 17 00:00:00 2001 From: Joe Corall Date: Tue, 19 Nov 2024 14:07:13 -0500 Subject: [PATCH] Forward auth to coverpage service to get unpublished node JSON exports (#55) --- examples/coverpage/Dockerfile | 2 +- examples/coverpage/cmd.sh | 2 +- examples/coverpage/scyllaridae.yml | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/coverpage/Dockerfile b/examples/coverpage/Dockerfile index 31cb330..ef2bd48 100644 --- a/examples/coverpage/Dockerfile +++ b/examples/coverpage/Dockerfile @@ -4,7 +4,7 @@ FROM ${DOCKER_REPOSITORY}/scyllaridae-pandoc:${TAG} RUN apt-get update \ && apt-get install -y --no-install-recommends \ - curl=8.5.0-2ubuntu10.4 \ + curl=8.5.0-2ubuntu10.5 \ ghostscript=10.02.1~dfsg1-0ubuntu7.4 \ jq=1.7.1-3build1 \ && rm -rf /var/lib/apt/lists/* diff --git a/examples/coverpage/cmd.sh b/examples/coverpage/cmd.sh index aa5b9b8..985d09f 100755 --- a/examples/coverpage/cmd.sh +++ b/examples/coverpage/cmd.sh @@ -13,7 +13,7 @@ EXISTING_PDF="$TMP_DIR/existing.pdf" cat > "${EXISTING_PDF}" # get the node JSON export -curl -L -s -o "$TMP_DIR/node.json" "${NODE_JSON_URL}?_format=json" +curl -L -s -o "$TMP_DIR/node.json" -H "Authorization: $SCYLLARIDAE_AUTH" "${NODE_JSON_URL}?_format=json" NODE_JSON=$(cat "$TMP_DIR/node.json") # extract the title and citation from the node JSON diff --git a/examples/coverpage/scyllaridae.yml b/examples/coverpage/scyllaridae.yml index 98ae265..c735959 100644 --- a/examples/coverpage/scyllaridae.yml +++ b/examples/coverpage/scyllaridae.yml @@ -1,5 +1,6 @@ allowedMimeTypes: - "application/pdf" +forwardAuth: true cmdByMimeType: default: cmd: "/app/cmd.sh"