Andreas
Google apis auth is not enabled
Hi everyone, I have an issue with connecting Google calendar & mail. I've enabled the People API, Mail and Calendar APIs as well as added the URIs in the project. When checking the docker log for twenty-server-1 I see the following:
Exception Captured
{
user: { id: '5ecb56b6-dc78-4ce7-98cf-3bf43b44dc4a' },
workspace: { id: 'aa11a739-2652-4c22-91bd-97ea393cc5fb' }
}
[
AuthException [Error]: Google apis auth is not enabled
at GoogleAPIsOauthRequestCodeGuard.canActivate (/app/packages/twenty-server/dist/src/engine/core-modules/auth/guards/google-apis-oauth-request-code.guard.js:44:19)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async GuardsConsumer.tryActivate (/app/node_modules/@nestjs/core/guards/guards-consumer.js:16:17)
at async canActivateFn (/app/node_modules/@nestjs/core/router/router-execution-context.js:134:33)
at async /app/node_modules/@nestjs/core/router/router-execution-context.js:42:31
at async /app/node_modules/@nestjs/core/router/router-proxy.js:9:17
at async /app/node_modules/@nestjs/core/router/router-explorer.js:166:17 {
code: 'GOOGLE_API_AUTH_DISABLED'
}
]
This is my .env:
MESSAGING_PROVIDER_GMAIL_ENABLED=true
CALENDAR_PROVIDER_GOOGLE_ENABLED=true
AUTH_PASSWORD_ENABLED=false
AUTH_GOOGLE_APIS_CALLBACK_URL=http://server-ip:3002/auth/google-apis/get-access-token
AUTH_GOOGLE_ENABLED=true
AUTH_GOOGLE_CLIENT_ID=xxx-yyy.apps.googleusercontent.com
AUTH_SSO_ENABLED=true
AUTH_GOOGLE_CLIENT_SECRET=GOCSPX-xxxxx
AUTH_GOOGLE_CALLBACK_URL=http://server-ip:3002/auth/google/redirect
Any ideas? I've also tried running the cron jobs from the documentation.
17 replies