_response=$(curl -k -X POST "https://localhost:8443/anything/oauth2/token" \
--no-progress-meter --fail-with-body \
-H "Content-Type: application/json" \
--json '{
"client_id": "client",
"client_secret": "secret",
"grant_type": "client_credentials"
}')
Export the env variables:
export =$(echo "$_response" | jq -r "")