Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update supabase.yaml with variables that enable Supabase external OAu… #2162

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
23 changes: 22 additions & 1 deletion templates/compose/supabase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -940,7 +940,10 @@ services:
- GOTRUE_DB_DRIVER=postgres
- GOTRUE_DB_DATABASE_URL=postgres://supabase_auth_admin:${SERVICE_PASSWORD_POSTGRES}@${POSTGRES_HOST:-supabase-db}:${POSTGRES_PORT:-5432}/${POSTGRES_DB:-postgres}

- GOTRUE_SITE_URL=${SERVICE_FQDN_SUPABASEKONG}
# The base URL your site is located at, eg. https://example.netlify.com/
# Currently used in combination with other settings to construct URLs used in emails.
# Any URI that shares a host with SITE_URL is a permitted value for redirect_to params (see /authorize etc.).
- GOTRUE_SITE_URL=${GOTRUE_SITE_URL}
- GOTRUE_URI_ALLOW_LIST=${ADDITIONAL_REDIRECT_URLS}
- GOTRUE_DISABLE_SIGNUP=${DISABLE_SIGNUP:-false}

Expand Down Expand Up @@ -979,6 +982,24 @@ services:

- GOTRUE_EXTERNAL_PHONE_ENABLED=${ENABLE_PHONE_SIGNUP:-true}
- GOTRUE_SMS_AUTOCONFIRM=${ENABLE_PHONE_AUTOCONFIRM:-true}

# Enable external OAuth providers like GitHub or Google to be configured
# from Supabase environment variables. GoTrue also supports apple, azure,
# bitbucket, discord, facebook, figma, github, gitlab, google, keycloak, linkedin,
# notion, spotify, slack, twitch, twitter and workos for external authentication.
# Add the variables you need here with the same names... GOTRUE_EXTERNAL_XXX_ENABLED, etc...
# https://github.com/supabase/auth?tab=readme-ov-file#external-authentication-providers
# You can see what you enabled in Supabase Studio (but you can't edit it):
# https://{SERVICE_FQDN_SUPABASEKONG}/project/default/auth/providers
- "GOTRUE_EXTERNAL_GITHUB_ENABLED=${GOTRUE_EXTERNAL_GITHUB_ENABLED:-false}"
- "GOTRUE_EXTERNAL_GITHUB_CLIENT_ID=${GOTRUE_EXTERNAL_GITHUB_CLIENT_ID}"
- "GOTRUE_EXTERNAL_GITHUB_REDIRECT_URI=${GOTRUE_EXTERNAL_GITHUB_REDIRECT_URI}"
- "GOTRUE_EXTERNAL_GITHUB_SECRET=${GOTRUE_EXTERNAL_GITHUB_SECRET}"
- "GOTRUE_EXTERNAL_GOOGLE_ENABLED=${GOTRUE_EXTERNAL_GOOGLE_ENABLED:-false}"
- "GOTRUE_EXTERNAL_GOOGLE_CLIENT_ID=${GOTRUE_EXTERNAL_GOOGLE_CLIENT_ID}"
- "GOTRUE_EXTERNAL_GOOGLE_REDIRECT_URI=${GOTRUE_EXTERNAL_GOOGLE_REDIRECT_URI}"
- "GOTRUE_EXTERNAL_GOOGLE_SECRET=${GOTRUE_EXTERNAL_GOOGLE_SECRET}"

# Uncomment to enable custom access token hook. You'll need to create a public.custom_access_token_hook function and grant necessary permissions.
# See: https://supabase.com/docs/guides/auth/auth-hooks#hook-custom-access-token for details
# GOTRUE_HOOK_CUSTOM_ACCESS_TOKEN_ENABLED="true"
Expand Down