Skip to content

Commit

Permalink
Missing MFA env var added to the console entrypoint
Browse files Browse the repository at this point in the history
Signed-off-by: Gianluca Barbon <gianluca.barbon@eurotech.com>
  • Loading branch information
gbarbon authored and Coduz committed Nov 2, 2020
1 parent e97536e commit a21bd4a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions assembly/console/entrypoint/run-console
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,14 @@ if [ -n "$KAPUA_CONSOLE_URL" ] && [ -n "$OPENID_JWT_ISSUER" ] && [ -n "$OPENID_A
JAVA_OPTS="$JAVA_OPTS -Dsso.generic.openid.server.endpoint.token=${OPENID_TOKEN_ENDPOINT}"
fi

# Multi Factor Authentication configurations

test -n "${CIPHER_KEY}" && JAVA_OPTS="${JAVA_OPTS} -Dcipher.key=${CIPHER_KEY}"
test -n "${MFA_TIME_STEP_SIZE}" && JAVA_OPTS="${JAVA_OPTS} -Dauthentication.mfa.time.step.size=${MFA_TIME_STEP_SIZE}"
test -n "${MFA_WINDOW_SIZE}" && JAVA_OPTS="${JAVA_OPTS} -Dauthentication.mfa.window.size=${MFA_WINDOW_SIZE}"
test -n "${MFA_SCRATCH_CODES_NUMBER}" && JAVA_OPTS="${JAVA_OPTS} -Dauthentication.mfa.scratch.codes.number=${MFA_SCRATCH_CODES_NUMBER}"
test -n "${MFA_CODE_DIGITS_NUMBER}" && JAVA_OPTS="${JAVA_OPTS} -Dauthentication.mfa.code.digits.number=${MFA_CODE_DIGITS_NUMBER}"

export JAVA_OPTS

# Continue with startup
Expand Down

0 comments on commit a21bd4a

Please sign in to comment.