Skip to content

Commit

Permalink
fix: a workaround for fido2 dependency (#1590)
Browse files Browse the repository at this point in the history
* fix: a workaround for fido2 dependency

* style: add comments

Co-authored-by: Mohammad Abudayyeh <47318409+moabu@users.noreply.github.com>
  • Loading branch information
iromli and moabu committed Jun 23, 2022
1 parent 47a4b5a commit 527c928
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 17 deletions.
11 changes: 8 additions & 3 deletions docker-jans-auth-server/Dockerfile
Expand Up @@ -76,15 +76,20 @@ RUN mkdir -p ${JETTY_BASE}/jans-auth/webapps \
RUN mkdir -p /usr/share/java

ARG TWILIO_VERSION=7.17.0
RUN wget -q https://repo1.maven.org/maven2/com/twilio/sdk/twilio/${TWILIO_VERSION}/twilio-${TWILIO_VERSION}.jar -O /usr/share/java/twilio.jar
RUN wget -q https://repo1.maven.org/maven2/com/twilio/sdk/twilio/${TWILIO_VERSION}/twilio-${TWILIO_VERSION}.jar -P /usr/share/java/

ARG JSMPP_VERSION=2.3.7
RUN wget -q https://repo1.maven.org/maven2/org/jsmpp/jsmpp/${JSMPP_VERSION}/jsmpp-${JSMPP_VERSION}.jar -O /usr/share/java/jsmpp.jar
RUN wget -q https://repo1.maven.org/maven2/org/jsmpp/jsmpp/${JSMPP_VERSION}/jsmpp-${JSMPP_VERSION}.jar -P /usr/share/java/

# This will later be refactored and moved to be pulled from persitence or a central bucket
ARG CASA_CONFIG_VERSION=5.0.0-SNAPSHOT
ARG CASA_CONFIG_BUILD_DATE="2022-05-26 13:56"
RUN wget -q https://jenkins.gluu.org/maven/org/gluu/casa-config/${CASA_CONFIG_VERSION}/casa-config-${CASA_CONFIG_VERSION}.jar -O /usr/share/java/casa-config.jar
RUN wget -q https://jenkins.gluu.org/maven/org/gluu/casa-config/${CASA_CONFIG_VERSION}/casa-config-${CASA_CONFIG_VERSION}.jar -P /usr/share/java/

# A workaround for Fido2 integration
ARG FIDO2_CLIENT_VERSION=1.0.1-SNAPSHOT
ARG FIDO2_CLIENT_BUILD_DATE="2022-06-22 08:13"
RUN wget -q https://jenkins.jans.io/maven/io/jans/jans-fido2-client/${FIDO2_CLIENT_VERSION}/jans-fido2-client-${FIDO2_CLIENT_VERSION}.jar -P /usr/share/java/

# =====================
# Casa external scripts
Expand Down
19 changes: 5 additions & 14 deletions docker-jans-auth-server/scripts/entrypoint.sh
Expand Up @@ -16,20 +16,11 @@ get_debug_opt() {
}

move_builtin_jars() {
# move twilio lib
if [ ! -f /opt/jans/jetty/jans-auth/custom/libs/twilio.jar ]; then
cp /usr/share/java/twilio.jar /opt/jans/jetty/jans-auth/custom/libs/twilio.jar
fi

# move jsmpp lib
if [ ! -f /opt/jans/jetty/jans-auth/custom/libs/jsmpp.jar ]; then
cp /usr/share/java/jsmpp.jar /opt/jans/jetty/jans-auth/custom/libs/jsmpp.jar
fi

# move casa-config lib
if [ ! -f /opt/jans/jetty/jans-auth/custom/libs/casa-config.jar ]; then
cp /usr/share/java/casa-config.jar /opt/jans/jetty/jans-auth/custom/libs/casa-config.jar
fi
#twilio, jsmpp, casa-config, jans-fido2-client
for src in /usr/share/java/*.jar; do
fname=$(basename "$src")
cp "$src" "/opt/jans/jetty/jans-auth/custom/libs/$fname"
done
}

get_prometheus_opt() {
Expand Down

0 comments on commit 527c928

Please sign in to comment.