From a8d3ad49ddb1280fd3ee8ff38225285b815014dc Mon Sep 17 00:00:00 2001 From: "gaynor@illinois.edu" Date: Mon, 10 Jul 2023 12:57:20 -0500 Subject: [PATCH 1/2] Pull request for release. This adds transaction cleanup and unused client cleanup plus a small tweak to toe QDL policies file and addresses https://github.com/scitokens/scitokens-oauth2-server/issues/12 https://github.com/scitokens/scitokens-oauth2-server/issues/13 https://jira.ncsa.illinois.edu/browse/CIL-1772 --- scitokens-server/etc/server-config.xml.tmpl | 9 +++++++++ scitokens-server/var/qdl/scitokens/policies.qdl | 4 +++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/scitokens-server/etc/server-config.xml.tmpl b/scitokens-server/etc/server-config.xml.tmpl index bc5869f..6d0b15a 100644 --- a/scitokens-server/etc/server-config.xml.tmpl +++ b/scitokens-server/etc/server-config.xml.tmpl @@ -9,6 +9,7 @@ refreshTokenEnabled="true" enableTokenExchange="true" clientSecretLength="24" + cleanupInterval= "60 min" scheme="oa4mp" schemeSpecificPart="" debug="trace" @@ -17,6 +18,14 @@ issuer="https://{HOSTNAME}/scitokens-server" address="https://{HOSTNAME}/scitokens-server"> + + + localhost:template + + Date: Tue, 18 Jul 2023 16:10:26 -0500 Subject: [PATCH 2/2] Pull request for release. This adds transaction cleanup and unused client cleanup plus a small tweak to toe QDL policies file and addresses https://github.com/scitokens/scitokens-oauth2-server/issues/12 https://github.com/scitokens/scitokens-oauth2-server/issues/13 https://jira.ncsa.illinois.edu/browse/CIL-1772 --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index d500304..65dedc5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,17 +23,17 @@ RUN \ mkdir -p /opt/scitokens-server/var/storage/file_store &&\ mkdir -p /opt/tomcat/webapps/scitokens-server ;\ # Install the OA4MP webapp and associated dependencies. - curl -s -L https://github.com/ncsa/OA4MP/releases/download/v5.3.1/oauth2.war > /opt/tomcat/webapps/scitokens-server.war ;\ + curl -s -L https://github.com/ncsa/OA4MP/releases/download/v5.3.3/oauth2.war > /opt/tomcat/webapps/scitokens-server.war ;\ curl -s -L https://github.com/javaee/javamail/releases/download/JAVAMAIL-1_6_2/javax.mail.jar > /opt/tomcat/lib/javax.mail.jar ;\ - curl -s -L https://github.com/ncsa/OA4MP/releases/download/v5.3.1/jwt.jar > /opt/scitokens-server/lib/jwt.jar ;\ - curl -L -s https://github.com/ncsa/OA4MP/releases/download/v5.3.1/cli.jar > /opt/scitokens-server/lib/scitokens-cli.jar ;\ + curl -s -L https://github.com/ncsa/OA4MP/releases/download/v5.3.3/jwt.jar > /opt/scitokens-server/lib/jwt.jar ;\ + curl -L -s https://github.com/ncsa/OA4MP/releases/download/v5.3.3/cli.jar > /opt/scitokens-server/lib/scitokens-cli.jar ;\ cd /opt/tomcat/webapps/scitokens-server ;\ jar -xf ../scitokens-server.war ;\ chgrp -R tomcat /opt/tomcat/webapps/scitokens-server ;\ mkdir -p /opt/tomcat/var/storage/scitokens-server ;\ chown -R tomcat:tomcat /opt/tomcat/var/storage/scitokens-server ;\ # Install support for the QDL CLI - curl -L -s https://github.com/ncsa/OA4MP/releases/download/v5.3.1/oa2-qdl-installer.jar >/tmp/oa2-qdl-installer.jar ;\ + curl -L -s https://github.com/ncsa/OA4MP/releases/download/v5.3.3/oa2-qdl-installer.jar >/tmp/oa2-qdl-installer.jar ;\ java -jar /tmp/oa2-qdl-installer.jar -dir /opt/qdl ;\ rm /tmp/oa2-qdl-installer.jar ;\ mkdir -p /opt/qdl/var/scripts ;\