diff --git a/apps/formbricks-com/app/docs/self-hosting/external-auth-providers/page.mdx b/apps/formbricks-com/app/docs/self-hosting/external-auth-providers/page.mdx index 8357b972e9..cb5bcf55c4 100644 --- a/apps/formbricks-com/app/docs/self-hosting/external-auth-providers/page.mdx +++ b/apps/formbricks-com/app/docs/self-hosting/external-auth-providers/page.mdx @@ -39,17 +39,24 @@ Integrating Google OAuth with your Formbricks instance allows users to log in us - Select the application type **Web application** for your project and enter any additional information required. - Ensure to specify authorized JavaScript origins and authorized redirect URIs. -``` + + +``` {{ title: 'Redirect & Origin URLs' }} Authorized JavaScript origins: {WEBAPP_URL} Authorized redirect URIs: {WEBAPP_URL}/api/auth/callback/google ``` + + 5. **Update Environment Variables in Docker**: - To integrate the Google OAuth, you have two options: either update the environment variables in the docker-compose file or directly add them to the running container. - In your Docker setup directory, open the `.env` file, and add or update the following lines with the `Client ID` and `Client Secret` obtained from Google Cloud Platform: - Alternatively, you can add the environment variables directly to the running container using the following commands (replace `container_id` with your actual Docker container ID): -``` + + + +```sh {{ title: 'Shell commands' }} docker exec -it container_id /bin/bash export GOOGLE_AUTH_ENABLED=1 export GOOGLE_CLIENT_ID=your-client-id-here @@ -57,12 +64,15 @@ export GOOGLE_CLIENT_SECRET=your-client-secret-here exit ``` -``` +```sh {{ title: 'env file' }} GOOGLE_AUTH_ENABLED=1 GOOGLE_CLIENT_ID=your-client-id-here GOOGLE_CLIENT_SECRET=your-client-secret-here ``` + + + 6. **Restart Your Formbricks Instance**: - **Note:** Restarting your Docker containers may cause a brief period of downtime. Plan accordingly. - Once the environment variables have been updated, it's crucial to restart your Docker containers to apply the changes. This ensures that your Formbricks instance can utilize the new Google OAuth configuration for user authentication. Here's how you can do it: