Google OAuth doesn't work in Docker Compose
Running Twenty in Docker Compose yet I can't get Google OAuth to work. Following env vars are set in
.env
file:
15 Replies
what do you mean by it does not work? π
when I open the main URL I can't see any SSO button to log in, just to enter the email, which is local basic auth
could you check your /graphql ClientConfig call in your network tab?
let's make sure you have google: true
if not, could you ssh in your container and make sure your env variables are set?
(run "env" in your ssh terminal)
thx, I'll check it tomorrow and will get back to you
sure π
I think I've found the issue. I've added the env vars to
.env
file, but didn't add them to docker-compose.yml
π€¦ββοΈ
let's see if that fixes the issue
yep, that was the issue, it works fine now π
however, I'm not sure about the AUTH_GOOGLE_APIS_CALLBACK_URL
there's nothing in docs what should it be, and it looks like google account connection doesn't work, when I want to connect google account to emails
error I'm getting:
@charles is it the right callback uri?
also what Authorised redirect URIs should be in GCP Credentials? also nothing about that in the docs
I've just added both URIs to GCP and it looks like it works now. please update the docs, so others wouldn't need to look into https://github.com/twentyhq/twenty/blob/c17e18b1e928eac02afaee12ff04cbf51f48e712/packages/twenty-server/.env.example to find out URIs π
GitHub
twenty/packages/twenty-server/.env.example at c17e18b1e928eac02afae...
Building a modern alternative to Salesforce, powered by the community. - twentyhq/twenty
good point! any chance you or anybody else could open a PR on twenty to add the example values to the doc?
I'll do that, but a bit later today
ty β€οΈ