Skip to content

Commit 36229c8

Browse files
committed
feat(supabase): enable GitLab and Bitbucket OAuth providers locally
- Added auth.external.gitlab and auth.external.bitbucket to config.toml - Created supabase/.env for OAuth credentials (gitignored) - Follows same pattern as existing GitHub OAuth config
1 parent 61db163 commit 36229c8

2 files changed

Lines changed: 14 additions & 1 deletion

File tree

supabase/.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
.branches
33
.temp
44

5-
# dotenvx
5+
# Environment variables (secrets)
6+
.env
67
.env.keys
78
.env.local
89
.env.*.local

supabase/config.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,18 @@ client_id = "env(GITHUB_CLIENT_ID)"
305305
secret = "env(GITHUB_CLIENT_SECRET)"
306306
redirect_uri = "http://localhost:54421/auth/v1/callback"
307307

308+
[auth.external.gitlab]
309+
enabled = true
310+
client_id = "env(GITLAB_CLIENT_ID)"
311+
secret = "env(GITLAB_CLIENT_SECRET)"
312+
redirect_uri = "http://localhost:54421/auth/v1/callback"
313+
314+
[auth.external.bitbucket]
315+
enabled = true
316+
client_id = "env(BITBUCKET_CLIENT_ID)"
317+
secret = "env(BITBUCKET_CLIENT_SECRET)"
318+
redirect_uri = "http://localhost:54421/auth/v1/callback"
319+
308320
[auth.external.apple]
309321
enabled = false
310322
client_id = ""

0 commit comments

Comments
 (0)