@@ -187,84 +187,7 @@ labels:
187187### Contents of running try.supertokens.com script:
188188
189189```bash
190- docker run -d \
191- --restart=always \
192- --name try-supertokens \
193- --label name=try-supertokens \
194- --label type=session-service \
195- --label mode=production \
196- --log-driver=awslogs --log-opt awslogs-region=ap-south-1 --log-opt awslogs-group=try-supertokens --log-opt awslogs-stream=try-supertokens \
197- -e DISABLE_TELEMETRY=true \
198- --publish 9999:3567 \
199- supertokens/supertokens-postgresql:6.0
200-
201- sleep 7
202-
203- curl --location --request POST 'https://try.supertokens.com/recipe/dashboard/user' \
204- --header 'rid: dashboard' \
205- --header 'api-key: <YOUR-API-KEY>' \
206- --header 'Content-Type: application/json' \
207- --data-raw '{"email": "[email protected] ","password": "abcd1234"}' 208-
209- curl --location --request PUT 'https://try.supertokens.com/recipe/multitenancy/tenant' \
210- --header 'Content-Type: application/json' \
211- --data-raw '{
212- "tenantId": "tenant1",
213- "emailPasswordEnabled": true,
214- "thirdPartyEnabled": true,
215- "passwordlessEnabled": false
216- }'
217-
218- curl --location --request PUT 'https://try.supertokens.com/tenant1/recipe/multitenancy/config/thirdparty' \
219- --header 'Content-Type: application/json' \
220- --data-raw '{
221- "config": {
222- "thirdPartyId": "google-workspaces",
223- "name": "Google Workspaces",
224- "clients": [
225- {
226- "clientId": "1060725074195-kmeum4crr01uirfl2op9kd5acmi9jutn.apps.googleusercontent.com",
227- "clientSecret": "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",
228- "additionalConfig": {
229- "hd": "*"
230- }
231- }
232- ]
233- }
234- }'
235-
236-
237- curl --location --request PUT 'https://try.supertokens.com/recipe/multitenancy/tenant' \
238- --header 'Content-Type: application/json' \
239- --data-raw '{
240- "tenantId": "tenant2",
241- "emailPasswordEnabled": true,
242- "thirdPartyEnabled": false,
243- "passwordlessEnabled": false
244- }'
245-
246- curl --location --request PUT 'https://try.supertokens.com/recipe/multitenancy/tenant' \
247- --header 'Content-Type: application/json' \
248- --data-raw '{
249- "tenantId": "tenant3",
250- "emailPasswordEnabled": false,
251- "thirdPartyEnabled": true,
252- "passwordlessEnabled": true
253- }'
254-
255-
256- curl --location --request PUT 'https://try.supertokens.com/tenant3/recipe/multitenancy/config/thirdparty' \
257- --header 'Content-Type: application/json' \
258- --data-raw '{
259- "config": {
260- "thirdPartyId": "github",
261- "name": "GitHub",
262- "clients": [
263- {
264- "clientId": "467101b197249757c71f",
265- "clientSecret": "e97051221f4b6426e8fe8d51486396703012f5bd"
266- }
267- ]
268- }
269- }'
190+ git clone github.com/supertokens/backend
191+ cd backend/scripts/demo-dashboard
192+ ./addData.sh
270193```
0 commit comments