Skip to content

Commit efd273f

Browse files
[CF1] DoH and service tokens (#23061)
* [CF1] DoH and service tokens * final update * Update src/content/docs/cloudflare-one/connections/connect-devices/agentless/dns/dns-over-https.mdx Co-authored-by: James Royal <[email protected]> --------- Co-authored-by: James Royal <[email protected]>
1 parent c790e82 commit efd273f

File tree

1 file changed

+8
-0
lines changed
  • src/content/docs/cloudflare-one/connections/connect-devices/agentless/dns

1 file changed

+8
-0
lines changed

src/content/docs/cloudflare-one/connections/connect-devices/agentless/dns/dns-over-https.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ Currently, authentication tokens can only be generated through the API. You can
124124

125125
### 1. Create a service token for the account
126126

127+
Each Cloudflare account can only have one active Access [service token](/cloudflare-one/identity/service-tokens/) authorized for DNS over HTTPS (DoH) at a time.
128+
127129
```bash
128130
curl "https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/access/service_tokens" \
129131
--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
@@ -164,6 +166,12 @@ curl --request PUT \
164166

165167
If you get an `access.api.error.service_token_not_found` error, check that `$SERVICE_TOKEN_ID` is the value of `id` and not `client_id`.
166168

169+
:::note
170+
171+
Although you can create multiple valid service tokens, only one service token can be designated for issuing DoH tokens. Calling the API to enable DoH on a new service token replaces the previously active service token. If a new token overrides an active service token, the API call will fail.
172+
173+
:::
174+
167175
<Details header="Example response">
168176

169177
```json

0 commit comments

Comments
 (0)