Skip to content

Commit c446243

Browse files
committed
Add more examples
1 parent bb89049 commit c446243

File tree

1 file changed

+13
-2
lines changed
  • content/guides/authentication/client-credentials

1 file changed

+13
-2
lines changed

content/guides/authentication/client-credentials/index.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,23 @@ If you would like to authenticate as the application's [Service Account][sa]:
4646
- set `box_subject_type` to `enterprise`
4747
- set `box_subject_id` to the enterprise ID
4848

49-
If you would like to authenticate as a Managed User:
49+
<Samples id='x_auth' variant='with_client_credentials' ></Samples>
50+
51+
If you would like to authenticate as an admin or a managed user:
5052

5153
- set `box_subject_type` to `user`
5254
- set `box_subject_id` to the user ID
55+
- enable **Generate User Access Tokens** in the Box [Developer Console][devconsole]
5356

54-
<Samples id='x_auth' variant='with_client_credentials' ></Samples>
57+
<Samples id='x_auth' variant='with_ccg_admin_managed_user' ></Samples>
58+
59+
If you would like to authenticate as any application user:
60+
61+
- set `box_subject_type` to `user`
62+
- set `box_subject_id` to the user ID
63+
- enable **App + Enterprise Access** and **Generate User Access Tokens** Box [Developer Console][devconsole]
64+
65+
<Samples id='x_auth' variant='with_ccg_app_user' ></Samples>
5566

5667
## Common Errors
5768

0 commit comments

Comments
 (0)