Skip to content

Commit de2c66c

Browse files
fixing indentation
1 parent cbc38b4 commit de2c66c

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/pages/guides/authentication/ServerToServerAuthentication/implementation.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -123,19 +123,18 @@ Follow the steps below to rotate client secrets programmatically for the OAuth S
123123
```
124124
125125
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:
126-
127-
```AdobeID, openid, read_organizations, additional_info.projectedProductContext, additional_info.roles, adobeio_api, read_client_secret, manage_client_secrets```
126+
```
127+
AdobeID, openid, read_organizations, additional_info.projectedProductContext, additional_info.roles, adobeio_api, read_client_secret, manage_client_secrets
128+
```
128129
129130
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.
130-
131131
```curl
132132
curl -X GET 'https://api.adobe.io/console/organizations/{orgId}/credentials/{credentialId}/secrets' \
133133
-H 'Authorization: Bearer {ACCESS TOKEN GENERATED IN STEP 5}'
134134
-H 'x-api-key: {CLIENT ID FROM STEP 6}'
135135
```
136136
137137
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.
138-
139138
```curl
140139
curl -X POST 'https://api.adobe.io/console/organizations/{orgId}/credentials/{credentialId}/secrets' \
141140
-H 'Authorization: Bearer {ACCESS TOKEN GENERATED IN STEP 5}'
@@ -147,8 +146,6 @@ Follow the steps below to rotate client secrets programmatically for the OAuth S
147146
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.
148147
149148
10. Call the API to delete the old client secret from your credential by passing the `uuid` in the URL
150-
151-
152149
```curl
153150
curl -X DELETE 'https://api.adobe.io/console/organizations/{orgId}/credentials/{credentialId}/secrets/{uuid from step 9}' \
154151
-H 'Authorization: Bearer {ACCESS TOKEN GENERATED IN STEP 5}'

0 commit comments

Comments
 (0)