You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
5. Generate an access token using the existing client secret (see the section on [generating access tokens](#generate-access-tokens)). Make sure to include scopes that the I/O Management API requires:
6. Call the API to list all existing client secrets. Note: you can grab your `client_id` from the OAuth Server-to-Server credential overview page.
129
128
130
-
```
129
+
```curl
131
130
curl -X GET 'https://api.adobe.io/console/organizations/{orgId}/credentials/{credentialId}/secrets' \
132
131
-H 'Authorization: Bearer {ACCESS TOKEN GENERATED IN STEP 5}'
133
132
-H 'x-api-key: {CLIENT ID FROM STEP 6}'
134
133
```
135
134
136
135
7. Call the API to add another client secret to your credential. The API response contains the `client_secret` that was added and its `uuid`. This `client_secret` will never be returned in plain text by any other API response. However, you can still find it on the Developer Console UI.
137
136
138
-
```
137
+
```curl
139
138
curl -X POST 'https://api.adobe.io/console/organizations/{orgId}/credentials/{credentialId}/secrets' \
140
139
-H 'Authorization: Bearer {ACCESS TOKEN GENERATED IN STEP 5}'
141
140
-H 'x-api-key: {CLIENT ID FROM STEP 6}'
@@ -146,8 +145,8 @@ Follow the steps below to rotate client secrets programmatically for the OAuth S
146
145
9. Call the API to list all client secrets for your credential. You can confirm that you have successfully updated the client secret in your applications by comparing the last used timestamps for the secrets. Grab the value of the `uuid` field for your older secret that you wish to delete.
147
146
148
147
10. Call the API to delete the old client secret from your credential by passing the `uuid` in the URL
149
-
150
-
```
148
+
149
+
```curl
151
150
curl -X DELETE 'https://api.adobe.io/console/organizations/{orgId}/credentials/{credentialId}/secrets/{uuid from step 9}' \
152
151
-H 'Authorization: Bearer {ACCESS TOKEN GENERATED IN STEP 5}'
0 commit comments