How Do I Update The OAuth App For My Organization
You can update the ID or the secret of the OAuth app that is associated with your your VMware Cloud services platform organization by using the VMware Cloud Director service API.
- Verify that a trust relationship has been established between VMware Cloud Director service and VMware Cloud services. See How Do I Establish a Trust Relationship Between VMware Cloud services and VMware Cloud Director service.
- Verify that you are assigned the Provider Administrator or the Provider Support role.
- Obtain an API token from the organization you want to manage and exchange it
for an access bearer token. Use the bearer token in the
Authorization
header when you run API calls. See How Do I Generate an API Token. - Obtain the organization ID (URN). See How Do I Retrieve the ID of My Organization.
Procedure
Example: Update an OAuth App
This
example updates the app secret of a specific OAuth
app.
PUT https://vcdc-operator-prod-us-west-2.vdp.vmware.com/organizations/urn:vcdc:organization:12345678-1234-1234-1234-123456789abc/configuration/cspCredentials
Enter the update information in the PUT request.
{ "appId": "aa1A1aaAaAa1AaA1Aa1AaaaAaaaAAAaaA", "appSecret": "******" }
Use the bearer token in the
The response returns the OAuth app ID
and the updated app
secret.Authorization
header of the request.
Authorization: Bearer eyJh…I1NiIs
{ "appId": "aa1A1aaAaAa1AaA1Aa1aAaaaaAaaaAAAaaA", "appSecret": "******" }