Merge pull request #1346 from AppFlowy-IO/appflowy-gotrue

chore: build appflowy gotrue based on fork repository
This commit is contained in:
Khor Shu Heng 2025-04-17 21:18:34 +08:00 committed by GitHub
commit cd9ed8055d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 1 additions and 16 deletions

View file

@ -1,12 +1,9 @@
# syntax=docker/dockerfile:1
FROM golang as base
WORKDIR /go/src/supabase
RUN git clone https://github.com/supabase/auth.git --depth 1 --branch v2.159.1
RUN git clone https://github.com/AppFlowy-IO/auth.git --depth 1 --branch 0.1.0
WORKDIR /go/src/supabase/auth
COPY patch/mfa_enabled.patch .
RUN git apply mfa_enabled.patch
RUN CGO_ENABLED=0 go build -o /auth .
RUN rm /go/src/supabase/auth/migrations/20240612123726_enable_rls_update_grants.up.sql
FROM alpine:3.20
RUN adduser -D -u 1000 supabase

View file

@ -1,12 +0,0 @@
diff --git a/internal/api/settings.go b/internal/api/settings.go
index bc2f3869..c0025f48 100644
--- a/internal/api/settings.go
+++ b/internal/api/settings.go
@@ -36,6 +36,7 @@ type Settings struct {
MailerAutoconfirm bool `json:"mailer_autoconfirm"`
PhoneAutoconfirm bool `json:"phone_autoconfirm"`
SmsProvider string `json:"sms_provider"`
+ MFAEnabled bool `json:"mfa_enabled"` // preserve for backwards compatibility
SAMLEnabled bool `json:"saml_enabled"`
}