Skip to content

Commit fa79da0

Browse files
coyotte508julien-cVaibhavs10
authored
Document new OAuth scopes (#2014)
* document new scopes * Update docs/hub/oauth.md Co-authored-by: Julien Chaumond <[email protected]> * Update docs/hub/spaces-oauth.md * Update docs/hub/oauth.md Co-authored-by: vb <[email protected]> * Apply suggestion from @coyotte508 --------- Co-authored-by: Julien Chaumond <[email protected]> Co-authored-by: vb <[email protected]>
1 parent 3f93682 commit fa79da0

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

docs/hub/oauth.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,12 @@ The currently supported scopes are:
3030
- `email`: Get the user's email address.
3131
- `read-billing`: Know whether the user has a payment method set up.
3232
- `read-repos`: Get read access to the user's personal repos.
33+
- `contribute-repos`: Can create repositories and access those created by this app. Cannot access any other repositories unless additional permissions are granted.
3334
- `write-repos`: Get write/read access to the user's personal repos.
3435
- `manage-repos`: Get full access to the user's personal repos. Also grants repo creation and deletion.
35-
- `inference-api`: Get access to the [Inference API](https://huggingface.co/docs/inference-providers/index), you will be able to make inference requests on behalf of the user.
36+
- `inference-api`: Get access to the [Inference Providers](https://huggingface.co/docs/inference-providers/index), you will be able to make inference requests on behalf of the user.
37+
- `jobs`: Run [jobs](https://huggingface.co/docs/huggingface_hub/main/en/guides/jobs)
38+
- `webhooks`: Manage [webhooks](https://huggingface.co/docs/huggingface_hub/main/en/guides/webhooks)
3639
- `write-discussions`: Open discussions and Pull Requests on behalf of the user as well as interact with discussions (including reactions, posting/editing comments, closing discussions, ...). To open Pull Requests on private repos, you need to request the `read-repos` scope as well.
3740

3841
All other information is available in the [OpenID metadata](https://huggingface.co/.well-known/openid-configuration).

docs/hub/spaces-oauth.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,12 @@ Those scopes are optional and can be added by setting `hf_oauth_scopes` in your
7373
- `email`: Get the user's email address.
7474
- `read-billing`: Know whether the user has a payment method set up.
7575
- `read-repos`: Get read access to the user's personal repos.
76+
- `contribute-repos`: Can create repositories and access those created by this app. Cannot access any other repositories unless additional permissions are granted.
7677
- `write-repos`: Get write/read access to the user's personal repos.
7778
- `manage-repos`: Get full access to the user's personal repos. Also grants repo creation and deletion.
78-
- `inference-api`: Get access to the [Inference API](https://huggingface.co/docs/inference-providers/index), you will be able to make inference requests on behalf of the user.
79+
- `inference-api`: Get access to the [Inference Providers](https://huggingface.co/docs/inference-providers/index), you will be able to make inference requests on behalf of the user.
80+
- `jobs`: Run [jobs](https://huggingface.co/docs/huggingface_hub/main/en/guides/jobs)
81+
- `webhooks`: Manage [webhooks](https://huggingface.co/docs/huggingface_hub/main/en/guides/webhooks)
7982
- `write-discussions`: Open discussions and Pull Requests on behalf of the user as well as interact with discussions (including reactions, posting/editing comments, closing discussions, ...). To open Pull Requests on private repos, you need to request the `read-repos` scope as well.
8083

8184
## Accessing organization resources

0 commit comments

Comments
 (0)