Skip to content

Commit

Permalink
feat: 2fa 인증 대응
Browse files Browse the repository at this point in the history
  • Loading branch information
chussum committed Jan 10, 2024
1 parent 39af4d5 commit 906bdc7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ run () {
elif [[ ! -z "${OPENCONNECT_PASSWORD}" ]]; then
# Standard authentication
echo $OPENCONNECT_PASSWORD | openconnect -u "$OPENCONNECT_USER" --passwd-on-stdin --script-tun --script="ocproxy -g -D 1080" $OPENCONNECT_OPTIONS $OPENCONNECT_URL
elif [[ ! -z "${OPENCONNECT_MFA_CODE}" ]]; then
# Multi factor authentication (MFA)
echo $OPENCONNECT_MFA_CODE | openconnect -u "$OPENCONNECT_USER" $OPENCONNECT_OPTIONS --passwd-on-stdin $OPENCONNECT_URL
fi
}

Expand Down

0 comments on commit 906bdc7

Please sign in to comment.