Skip to content

Commit cd7dd28

Browse files
committed
clarify PUT request body
1 parent b9229f2 commit cd7dd28

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/content/docs/cloudflare-one/identity/service-tokens.mdx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,14 @@ You can configure a self-hosted Access application to accept a service token in
4141

4242
To authenticate using a single header:
4343

44-
1. In your Access application, specify the name of the header you want to use for service token authentication:
44+
1. Get your existing Access application configuration:
45+
46+
<APIRequest
47+
path="/accounts/{account_id}/access/apps/{app_id}"
48+
method="GET"
49+
/>
50+
51+
2. Make a `PUT` request with the name of the header you want to use for service token authentication. To avoid overwriting your existing configuration, the `PUT` request body should contain all fields returned by the previous `GET` request.
4552

4653
<APIRequest
4754
path="/accounts/{account_id}/access/apps/{app_id}"
@@ -51,7 +58,6 @@ To authenticate using a single header:
5158
"type": "self_hosted",
5259
"read_service_tokens_from_header": "Authorization"
5360
}}
54-
5561
/>
5662

5763
2. Add the header to any HTTP request. For example,

0 commit comments

Comments
 (0)