vsphere-automation-sdk-rest
vsphere-automation-sdk-rest copied to clipboard
Add Get Access Token sample
What this PR does / why we need it:
This sample allows you to get an access token using the OAuth2 client credentials grant type. You create a Server to Server app and get a client ID and client secret. Using these, you can get an access token from the added API call.
This also includes an update to the VMC Environment file for client_id and client_secret.
@jobingeo Yes, I tested this and it works fine. There is also a test to ensure that an access token is returned.
@jobingeo Ok, I've updated the variable names.