updated curl_auth.sh

pull/2/head
Hari Sekhon 4 years ago
parent 4adb477b6d
commit 559eae2224

@ -50,7 +50,10 @@ done
check_bin curl
USERNAME="${USERNAME:-${USER:-$(whoami)}}"
TOKEN="${TOKEN:-${OAUTH2_TOKEN:-${OAUTH_TOKEN:-${JWT_TOKEN:-}}}}"
# for APIs like Codeship codeship_api_token.sh in which you must use basic auth and not pass a token
if [ -z "${NO_TOKEN_AUTH:-}" ]; then
TOKEN="${TOKEN:-${OAUTH2_TOKEN:-${OAUTH_TOKEN:-${JWT_TOKEN:-}}}}"
fi
# Only do password mechanism and netrc_contents workaround if not using Kerberos
if [ -z "${KRB5:-${KERBEROS:-}}" ]; then

Loading…
Cancel
Save