Latest changes, oauth token nearly working.

This commit is contained in:
stormdragon2976 2023-01-29 18:48:29 -05:00
parent 73c3ae9cc6
commit 77e81a839f

View File

@ -51,6 +51,8 @@ get_oauth_token() {
fi
echo
read -er oauth_token
# This is actually a authorization token, so get the actual token.
oauth_token="$(curl -sS -d "client_id=${client_id}" -d "client_secret=${client_secret}" -d "code=${oauth_token}" -d "grant_type=authorization_code" "${instanceURL}/oauth/token")"
echo "oauth_token=\"${oauth_token}\"" >> "${configPath}/${configFile}"
echo "instanceURL=\"${instanceURL}\"" >> "${configPath}/${configFile}"
}