barthfab commited on
Commit
4374112
1 Parent(s): 0049d09

Update .oauth.yaml

Browse files
Files changed (1) hide show
  1. .oauth.yaml +18 -3
.oauth.yaml CHANGED
@@ -1,9 +1,24 @@
1
  # Change to `true` to enable HF auth integration
2
- enabled: false
3
 
4
  providers:
 
 
5
  - name: huggingface
 
 
 
 
6
 
7
- # Allowed workspaces must exists
 
 
 
 
 
 
 
 
 
8
  allowed_workspaces:
9
- - name: admin
 
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