Skip to content

Commit

Permalink
πŸ“ Document new write-discussions oauth scope (#1286)
Browse files Browse the repository at this point in the history
* πŸ“ Document new write-discussions oauth scope

* Update docs/hub/spaces-oauth.md

Co-authored-by: Omar Sanseviero <[email protected]>

* Update docs/hub/oauth.md

Co-authored-by: Omar Sanseviero <[email protected]>

* πŸ“

---------

Co-authored-by: Omar Sanseviero <[email protected]>
  • Loading branch information
coyotte508 and osanseviero authored May 16, 2024
1 parent 070425c commit ece2dcc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/hub/oauth.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ The currently supported scopes are:
- `write-repos`: Get write/read access to the user's personal repos.
- `manage-repos`: Get full access to the user's personal repos. Also grants repo creation and deletion.
- `inference-api`: Get access to the [Inference API](https://huggingface.co/docs/api-inference/index), you will be able to make inference requests on behalf of the user.
- `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, ...).

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

Expand Down
1 change: 1 addition & 0 deletions docs/hub/spaces-oauth.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ Those scopes are optional and can be added by setting `hf_oauth_scopes` in your
- `write-repos`: Get write/read access to the user's personal repos.
- `manage-repos`: Get full access to the user's personal repos. Also grants repo creation and deletion.
- `inference-api`: Get access to the [Inference API](https://huggingface.co/docs/api-inference/index), you will be able to make inference requests on behalf of the user.
- `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, ...).

## Adding the button to your Space

Expand Down

0 comments on commit ece2dcc

Please sign in to comment.