curl --no-progress-meter -f -L -X POST 'http://localhost:8080/realms/master/protocol/openid-connect/token' \ -H 'Content-Type: application/x-www-form-urlencoded' \ --data-urlencode "client_id=actix" \ --data-urlencode "grant_type=refresh_token" \ --data-urlencode "client_secret=JQI6gnEeHlaOX3yzZsiVwAAUIouTlR4j" \ --data-urlencode "refresh_token=$(jq -r .refresh_token token.json)" \ > token.json jq -r .access_token < token.json > token.txt