Issues signing in with Google

My version of HedgeDoc is: 1.9.9

What I expected to happen: Have a sign-up/login button with Google

It’s running with Docker and these are my params:

        -e DB_HOST="hedgedoc-mariadb" \
        -e DB_PORT=3306 \
        -e DB_USER=hedgedoc \
        -e DB_PASS="$sqlhedgedocpsw" \
        -e DB_NAME=hedgedoc \
        -e NODE_ENV=production \
        -e CMD_DOMAIN=docs.our-domain.com \
        -e CMD_URL_ADDPORT=false \
        -e CMD_PROTOCOL_USESSL=true \
        -e CMD_PORT=3000 \
        -e CMD_ALLOW_ORIGIN="['localhost', '[docs.our-domain.com']" \
        -e CMD_SESSION_SECRET="$strongsecret" \
        -e CMD_SESSION_LIFE=5184000000 \
        -e CMD_EMAIL=false \
        -e CMD_ALLOW_EMAIL_REGISTER=false \
        -e CMD_AUTH_GOOGLE_CLIENTID="$google_client_id" \
        -e CMD_AUTH_GOOGLE_CLIENTSECRET="$google_client_secret" \
        -e CMD_AUTH_GOOGLE_HOSTEDDOMAIN="our-domain.com" \
        -e CMD_ALLOW_ANONYMOUS=false \
        -e CMD_REQUIRE_FREEURL_AUTHENTICATION=true \

I only want people using our Google SSO login to be able to sign up or login to our instance. It should be limited to users with our domain.

Email signup is disabled (if I turn that to true, I can see the button).

What actually happened: There’s no signup/login button.

I already tried:

Turning the email login back to true works, for email. But that’s not what I want… :slight_smile:

I’ve tried changing Google to Gitlab, and the buttons are still hidden.

In the container I do see the envs (obviously the clientid and secret have been modified):

root@12171d0121be:/# env | grep GOOG
CMD_AUTH_GOOGLE_HOSTEDDOMAIN=our-domain.com
CMD_AUTH_GOOGLE_CLIENTID=abc-def.apps.googleusercontent.com
CMD_AUTH_GOOGLE_CLIENTSECRET=xxxx-aabbccddeeff

In Google Console, I’ve set:

What am I missing here to make it work?