Spaces:
Sleeping
Sleeping
Update .oauth.yaml
Browse files- .oauth.yaml +18 -3
.oauth.yaml
CHANGED
@@ -1,9 +1,24 @@
|
|
1 |
# Change to `true` to enable HF auth integration
|
2 |
-
enabled:
|
3 |
|
4 |
providers:
|
|
|
|
|
5 |
- name: huggingface
|
|
|
|
|
|
|
|
|
6 |
|
7 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
allowed_workspaces:
|
9 |
-
|
|
|
1 |
# Change to `true` to enable HF auth integration
|
2 |
+
enabled: true
|
3 |
|
4 |
providers:
|
5 |
+
# The OAuth provider setup
|
6 |
+
# For now, only Hugging Face is supported
|
7 |
- name: huggingface
|
8 |
+
# This is the client ID of the OAuth app. You can find it in your Hugging Face settings.
|
9 |
+
# see https://huggingface.co/docs/hub/oauth#creating-an-oauth-app for more info.
|
10 |
+
# You can also provide it by using the env variable `OAUTH2_HUGGINGFACE_CLIENT_ID`
|
11 |
+
client_id: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXXX
|
12 |
|
13 |
+
# This is the client secret of the OAuth app. You can find it in your Hugging Face settings.
|
14 |
+
# See https://huggingface.co/docs/hub/oauth#creating-an-oauth-app for more info.
|
15 |
+
# We encourage you to provide it by using the env variable `OAUTH2_HUGGINGFACE_CLIENT_SECRET`
|
16 |
+
client_secret: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXXX
|
17 |
+
|
18 |
+
# The scope of the OAuth app. At least `openid` and `profile` are required.
|
19 |
+
scope: openid profile
|
20 |
+
|
21 |
+
# This section defines the allowed workspaces for the oauth users.
|
22 |
+
# Workspaces defined here must exist in Argilla.
|
23 |
allowed_workspaces:
|
24 |
+
- name: admin
|