AdobeDocs / adobe-dev-console

Apache License 2.0
21 stars 123 forks source link

Issue in /src/pages/guides/authentication/ServerToServerAuthentication/implementation.md #102

Closed snielson closed 5 months ago

snielson commented 1 year ago

API example on Step 10 in "Rotating client secrets programmatically" uses the wrong method. POST should be updated to DELETE Currently the code sample is:

curl -X POST 'https://api.adobe.io/console/organizations/{orgId}/credentials/{credentialId}/secrets/{uuid from step 9}' \
     -H 'Authorization: Bearer {ACCESS TOKEN GENERATED IN STEP 5}'
     -H 'x-api-key: {CLIENT ID FROM STEP 6}'`

However, it should be:

curl -X DELETE 'https://api.adobe.io/console/organizations/{orgId}/credentials/{credentialId}/secrets/{uuid from step 9}' \
     -H 'Authorization: Bearer {ACCESS TOKEN GENERATED IN STEP 5}'
     -H 'x-api-key: {CLIENT ID FROM STEP 6}'
theManikJindal commented 5 months ago

This was fixed