Skip to content

Commit

Permalink
Merge branch 'DDOC-1131-incorrect-information-client-credentials' of …
Browse files Browse the repository at this point in the history
…github.com:box/developer.box.com into staging
  • Loading branch information
superojla committed Nov 19, 2024
2 parents 006fdb2 + c446243 commit bcb35fe
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions content/guides/authentication/client-credentials/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,23 @@ If you would like to authenticate as the application's [Service Account][sa]:
- set `box_subject_type` to `enterprise`
- set `box_subject_id` to the enterprise ID

If you would like to authenticate as a Managed User:
<Samples id='x_auth' variant='with_client_credentials' ></Samples>

If you would like to authenticate as an admin or a managed user:

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

<Samples id='x_auth' variant='with_client_credentials' ></Samples>
<Samples id='x_auth' variant='with_ccg_admin_managed_user' ></Samples>

If you would like to authenticate as any application user:

- set `box_subject_type` to `user`
- set `box_subject_id` to the user ID
- enable **App + Enterprise Access** and **Generate User Access Tokens** Box [Developer Console][devconsole]

<Samples id='x_auth' variant='with_ccg_app_user' ></Samples>

## Common Errors

Expand Down

0 comments on commit bcb35fe

Please sign in to comment.