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
This is the only time Cloudflare Access will display the Client Secret. If you lose the Client Secret, you must generate a new service token.
24
24
:::
25
25
26
-
</TabItem> <TabItemlabel="Terraform (v4)">
26
+
</TabItem> <TabItemlabel="Terraform (v5)">
27
27
28
-
:::note[Provider versions]
29
-
The following example requires Cloudflare provider version `>=4.40.0`.
30
-
:::
31
-
32
-
1. Add the following permission to your [`cloudflare_api_token`](https://registry.terraform.io/providers/cloudflare/cloudflare/4.40.0/docs/resources/api_token):
28
+
1. Add the following permission to your [`cloudflare_api_token`](https://registry.terraform.io/providers/cloudflare/cloudflare/latest/docs/resources/api_token):
33
29
-`Access: Service Tokens Write`
34
30
35
-
2. Configure the [`cloudflare_zero_trust_access_service_token`](https://registry.terraform.io/providers/cloudflare/cloudflare/4.40.0/docs/resources/zero_trust_access_service_token) resource:
31
+
2. Configure the [`cloudflare_zero_trust_access_service_token`](https://registry.terraform.io/providers/cloudflare/cloudflare/latest/docs/resources/zero_trust_access_service_token) resource:
*`auth_client_id`: The **Client ID** of your service token.
24
24
*`auth_client_secret`: The **Client Secret** of your service token.
25
25
26
-
</TabItem> <TabItemlabel="Terraform (v4)">
26
+
</TabItem> <TabItemlabel="Terraform (v5)">
27
27
28
-
:::note[Provider versions]
29
-
The following example requires Cloudflare provider version `>=4.40.0`.
30
-
:::
31
-
32
-
1. Add the following permission to your [`cloudflare_api_token`](https://registry.terraform.io/providers/cloudflare/cloudflare/4.40.0/docs/resources/api_token):
28
+
1. Add the following permissions to your [`cloudflare_api_token`](https://registry.terraform.io/providers/cloudflare/cloudflare/latest/docs/resources/api_token):
33
29
-`Access: Apps and Policies Write`
30
+
-`Access: Service Tokens Write`
34
31
35
32
2.[Create a service token](/cloudflare-one/identity/service-tokens/#create-a-service-token) and copy its **Client ID** and **Client Secret**.
36
33
37
-
3.Add the following policy to your [WARP enrollment Access application](/cloudflare-one/connections/connect-devices/warp/deployment/device-enrollment/#set-device-enrollment-permissions):
4. In your MDM [deployment parameters](/cloudflare-one/connections/connect-devices/warp/deployment/mdm-deployment/parameters/), add the following fields:
50
+
4. Add the policy to your [WARP enrollment Access application](/cloudflare-one/connections/connect-devices/warp/deployment/device-enrollment/#set-device-enrollment-permissions).
51
+
52
+
5. In your MDM [deployment parameters](/cloudflare-one/connections/connect-devices/warp/deployment/mdm-deployment/parameters/), add the following fields:
53
53
*`auth_client_id`: The **Client ID** of your service token.
54
54
*`auth_client_secret`: The **Client Secret** of your service token.
0 commit comments