diff --git a/.github/workflows/cdelivery-s3-caller.yml b/.github/workflows/cdelivery-s3-caller.yml
index c6614a25..992b842d 100644
--- a/.github/workflows/cdelivery-s3-caller.yml
+++ b/.github/workflows/cdelivery-s3-caller.yml
@@ -24,4 +24,7 @@ jobs:
show-notifications: ${{ secrets.REACT_APP_SHOW_NOTIFICATIONS }}
graasp-compose-host: ${{ secrets.REACT_APP_GRAASP_COMPOSE_HOST_STAGE }}
graasp-explorer-host: ${{ secrets.REACT_APP_GRAASP_EXPLORE_HOST_STAGE }}
+ authentication-host: ${{ secrets.REACT_APP_AUTHENTICATION_HOST_STAGE }}
+ recaptcha-site-key: ${{ secrets.REACT_APP_RECAPTCHA_SITE_KEY }}
+ sentry-dsn: ${{ secrets.REACT_APP_SENTRY_DSN }}
domain: ${{ secrets.REACT_APP_DOMAIN_STAGE }}
diff --git a/.github/workflows/cdeployment-s3-caller.yml b/.github/workflows/cdeployment-s3-caller.yml
index 839d880d..73b37f14 100644
--- a/.github/workflows/cdeployment-s3-caller.yml
+++ b/.github/workflows/cdeployment-s3-caller.yml
@@ -30,4 +30,7 @@ jobs:
show-notifications: ${{ secrets.REACT_APP_SHOW_NOTIFICATIONS }}
graasp-compose-host: ${{ secrets.REACT_APP_GRAASP_COMPOSE_HOST_PROD }}
graasp-explorer-host: ${{ secrets.REACT_APP_GRAASP_EXPLORE_HOST_PROD }}
+ authentication-host: ${{ secrets.REACT_APP_AUTHENTICATION_HOST_PROD }}
+ recaptcha-site-key: ${{ secrets.REACT_APP_RECAPTCHA_SITE_KEY }}
+ sentry-dsn: ${{ secrets.REACT_APP_SENTRY_DSN }}
domain: ${{ secrets.REACT_APP_DOMAIN_PROD }}
diff --git a/.github/workflows/cintegration-s3-caller.yml b/.github/workflows/cintegration-s3-caller.yml
index 29274e53..4f414ccd 100644
--- a/.github/workflows/cintegration-s3-caller.yml
+++ b/.github/workflows/cintegration-s3-caller.yml
@@ -25,7 +25,10 @@ jobs:
aws-s3-bucket-name: ${{ secrets.AWS_S3_BUCKET_NAME_GRAASP_AUTH_DEV }}
cloudfront-distribution-id: ${{ secrets.CLOUDFRONT_DISTRIBUTION_GRAASP_AUTH_DEV }}
api-host: ${{ secrets.REACT_APP_API_HOST_DEV }}
+ authentication-host: ${{ secrets.REACT_APP_AUTHENTICATION_HOST_DEV }}
show-notifications: ${{ secrets.REACT_APP_SHOW_NOTIFICATIONS }}
graasp-compose-host: ${{ secrets.REACT_APP_GRAASP_COMPOSE_HOST_DEV }}
graasp-explorer-host: ${{ secrets.REACT_APP_GRAASP_EXPLORE_HOST_DEV }}
+ recaptcha-site-key: ${{ secrets.REACT_APP_RECAPTCHA_SITE_KEY }}
+ sentry-dsn: ${{ secrets.REACT_APP_SENTRY_DSN }}
domain: ${{ secrets.REACT_APP_DOMAIN_DEV }}
diff --git a/README.md b/README.md
index 3c5cf565..91624058 100644
--- a/README.md
+++ b/README.md
@@ -1 +1,15 @@
# graasp-auth
+
+Create an `.env.local` file with:
+
+```sh
+REACT_APP_API_HOST=http://localhost:3000
+PORT=3001
+REACT_APP_DOMAIN=localhost:3001
+REACT_APP_SHOW_NOTIFICATIONS=true
+REACT_APP_AUTHENTICATION_HOST=http://localhost:3001
+
+REACT_APP_RECAPTCHA_SITE_KEY=
+```
+
+Generate your recaptcha key from [the reCAPTCHA admin console](https://www.google.com/recaptcha/admin/create)
diff --git a/package.json b/package.json
index 9dd4bcdf..0bc80f3b 100644
--- a/package.json
+++ b/package.json
@@ -12,12 +12,15 @@
"@emotion/react": "11.10.5",
"@emotion/styled": "11.10.5",
"@graasp/query-client": "0.2.0",
- "@graasp/sdk": "0.4.1",
+ "@graasp/sdk": "0.10.0",
"@graasp/translations": "1.8.0",
"@graasp/ui": "0.11.1",
"@mui/icons-material": "5.11.0",
"@mui/lab": "5.0.0-alpha.119",
"@mui/material": "5.11.8",
+ "@sentry/browser": "7.45.0",
+ "@sentry/react": "7.45.0",
+ "@sentry/tracing": "7.45.0",
"http-status-codes": "2.2.0",
"qs": "6.11.0",
"react": "17.0.2",
@@ -31,8 +34,8 @@
"validator": "13.7.0"
},
"scripts": {
- "start": "env-cmd -f ./.env.local react-scripts start",
- "start:test": "env-cmd -f ./.env.test react-scripts start",
+ "start": "env-cmd -f ./.env.local react-scripts -r @cypress/instrument-cra start",
+ "start:test": "env-cmd -f ./.env.test react-scripts -r @cypress/instrument-cra start",
"start:ci": "react-scripts -r @cypress/instrument-cra start",
"build": "react-scripts build",
"dist:dev": "env-cmd -f ./.env.development react-scripts build",
@@ -106,5 +109,9 @@
"typescript": "4.9.4",
"wait-on": "7.0.1"
},
+ "resolutions": {
+ "@graasp/sdk": "0.10.0",
+ "@types/react": "17.0.30"
+ },
"packageManager": "yarn@3.2.1"
}
diff --git a/public/index.html b/public/index.html
index 48f74c86..e95729ae 100644
--- a/public/index.html
+++ b/public/index.html
@@ -27,6 +27,12 @@
href="%PUBLIC_URL%/favicon-16x16.png"
/>
+
+
+