VARest: Retrieving Access Token using grant_type=client_credentials

Hello,

I am trying to retrieve an access token from a URL POST call via VARest and I actually cannot figure out how I can

  • add the header variables and
  • how to hand over the certificate and key.

Can someone help me on this?

CURL example:

curl --request POST 'https://..../oauth/token' \
--header 'Accept: application/json' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'grant_type=client_credentials' \
--data-urlencode 'client_id=....' \
--cert    /.../cert.crt \
--key     /.../cert.key \

Thanks