From c47c7f43994f0f9062488e9b7226f109e011afab Mon Sep 17 00:00:00 2001 From: Winston Hoy Date: Tue, 14 Jan 2025 23:06:17 -0500 Subject: [PATCH 1/3] for docker installs, override SIGN_IN_PREFILLED=false --- packages/twenty-docker/.env.example | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/twenty-docker/.env.example b/packages/twenty-docker/.env.example index 40efdf33e7d0..591e4c91be11 100644 --- a/packages/twenty-docker/.env.example +++ b/packages/twenty-docker/.env.example @@ -6,6 +6,7 @@ TAG=latest #REDIS_URL=redis://redis:6379 SERVER_URL=http://localhost:3000 +SIGN_IN_PREFILLED=false # Use openssl rand -base64 32 for each secret # APP_SECRET=replace_me_with_a_random_string From 236912553e3e865521f7fcf968005c656c8ca620 Mon Sep 17 00:00:00 2001 From: Winston Hoy Date: Wed, 15 Jan 2025 23:28:29 -0500 Subject: [PATCH 2/3] add documentation of scopes --- .../src/content/developers/self-hosting/setup.mdx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/twenty-website/src/content/developers/self-hosting/setup.mdx b/packages/twenty-website/src/content/developers/self-hosting/setup.mdx index 434c5f87580d..81d385f97abd 100644 --- a/packages/twenty-website/src/content/developers/self-hosting/setup.mdx +++ b/packages/twenty-website/src/content/developers/self-hosting/setup.mdx @@ -40,6 +40,12 @@ Under [Credentials](https://console.cloud.google.com/apis/credentials), in OAuth - `https:///auth/google/redirect` if you want to use Google SSO - `https:///auth/google-apis/get-access-token` +### Configure Scopes +[See relevant source code](https://github.com/twentyhq/twenty/blob/main/packages/twenty-server/src/engine/core-modules/auth/utils/get-google-apis-oauth-scopes.ts#L4-L10) +- 'https://www.googleapis.com/auth/calendar.events' +- 'https://www.googleapis.com/auth/gmail.readonly' +- 'https://www.googleapis.com/auth/profile.emails.read' + ### If your app is in test mode If your app is in test mode, you will need to add test users to your project. From 670f35758d08dcd4f00862c2a6b6fce22d6c7065 Mon Sep 17 00:00:00 2001 From: Winston Hoy Date: Thu, 16 Jan 2025 09:46:42 -0500 Subject: [PATCH 3/3] document Microsoft scopes --- .../src/content/developers/self-hosting/setup.mdx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/packages/twenty-website/src/content/developers/self-hosting/setup.mdx b/packages/twenty-website/src/content/developers/self-hosting/setup.mdx index 81d385f97abd..f7ffecfe5462 100644 --- a/packages/twenty-website/src/content/developers/self-hosting/setup.mdx +++ b/packages/twenty-website/src/content/developers/self-hosting/setup.mdx @@ -40,7 +40,7 @@ Under [Credentials](https://console.cloud.google.com/apis/credentials), in OAuth - `https:///auth/google/redirect` if you want to use Google SSO - `https:///auth/google-apis/get-access-token` -### Configure Scopes +### Configure scopes [See relevant source code](https://github.com/twentyhq/twenty/blob/main/packages/twenty-server/src/engine/core-modules/auth/utils/get-google-apis-oauth-scopes.ts#L4-L10) - 'https://www.googleapis.com/auth/calendar.events' - 'https://www.googleapis.com/auth/gmail.readonly' @@ -102,6 +102,15 @@ You need to add the following redirect URIs to your project: - `https:///auth/microsoft/redirect` if you want to use Microsoft SSO - `https:///auth/microsoft-apis/get-access-token` +### Configure scopes +[See relevant source code](https://github.com/twentyhq/twenty/blob/main/packages/twenty-server/src/engine/core-modules/auth/utils/get-microsoft-apis-oauth-scopes.ts#L2-L9) +- 'openid' +- 'email' +- 'profile' +- 'offline_access' +- 'Mail.Read' +- 'Calendars.Read + ### If your app is in test mode If your app is in test mode, you will need to add test users to your project.