Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions internal/start/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,8 @@ EOF
fmt.Sprintf("GOTRUE_MFA_PHONE_VERIFY_ENABLED=%v", utils.Config.Auth.MFA.Phone.VerifyEnabled),
fmt.Sprintf("GOTRUE_MFA_TOTP_ENROLL_ENABLED=%v", utils.Config.Auth.MFA.TOTP.EnrollEnabled),
fmt.Sprintf("GOTRUE_MFA_TOTP_VERIFY_ENABLED=%v", utils.Config.Auth.MFA.TOTP.VerifyEnabled),
fmt.Sprintf("GOTRUE_MFA_WEB_AUTHN_ENROLL_ENABLED=%v", utils.Config.Auth.MFA.WebAuthn.EnrollEnabled),
fmt.Sprintf("GOTRUE_MFA_WEB_AUTHN_VERIFY_ENABLED=%v", utils.Config.Auth.MFA.WebAuthn.VerifyEnabled),
fmt.Sprintf("GOTRUE_MFA_MAX_ENROLLED_FACTORS=%v", utils.Config.Auth.MFA.MaxEnrolledFactors),
}

Expand Down
1 change: 1 addition & 0 deletions pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ type (
mfa struct {
TOTP factorTypeConfiguration `toml:"totp"`
Phone phoneFactorTypeConfiguration `toml:"phone"`
WebAuthn factorTypeConfiguration `toml:"web_authn"`
MaxEnrolledFactors uint `toml:"max_enrolled_factors"`
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/config/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const (
edgeRuntimeImage = "supabase/edge-runtime:v1.59.0"
vectorImage = "timberio/vector:0.28.1-alpine"
supavisorImage = "supabase/supavisor:1.1.56"
gotrueImage = "supabase/gotrue:v2.158.1"
gotrueImage = "supabase/gotrue:v2.163.2"
realtimeImage = "supabase/realtime:v2.30.34"
storageImage = "supabase/storage-api:v1.11.13"
logflareImage = "supabase/logflare:1.4.0"
Expand Down
5 changes: 5 additions & 0 deletions pkg/config/templates/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,11 @@ verify_enabled = true
# template = "Your code is {{ `{{ .Code }}` }} ."
# max_frequency = "10s"

# Configure Multi-factor-authentication via WebAuthn
# [auth.mfa.web_authn]
# enroll_enabled = true
# verify_enabled = true

# Use an external OAuth provider. The full list of providers are: `apple`, `azure`, `bitbucket`,
# `discord`, `facebook`, `github`, `gitlab`, `google`, `keycloak`, `linkedin_oidc`, `notion`, `twitch`,
# `twitter`, `slack`, `spotify`, `workos`, `zoom`.
Expand Down
5 changes: 5 additions & 0 deletions pkg/config/testdata/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,11 @@ otp_length = 6
template = "Your code is {{ `{{ .Code }}` }} ."
max_frequency = "10s"

# Configure Multi-factor-authentication via Phone Messaging
[auth.mfa.web_authn]
enroll_enabled = true
verify_enabled = true

# Use an external OAuth provider. The full list of providers are: `apple`, `azure`, `bitbucket`,
# `discord`, `facebook`, `github`, `gitlab`, `google`, `keycloak`, `linkedin_oidc`, `notion`, `twitch`,
# `twitter`, `slack`, `spotify`, `workos`, `zoom`.
Expand Down