-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add minimum password length and password requirements config (#…
…2885) * feat: add minimal password length and password requirements config * Update auth config body * fix: change password requirements to a map * tests: update config and diff files * update diffs for tests * chore: convert between local and remote password * chore: refactor config fields * chore: add unit tests for password requirement * chore: add missing testdata --------- Co-authored-by: Qiao Han <[email protected]>
- Loading branch information
1 parent
8fb7f30
commit b9e0aa0
Showing
15 changed files
with
189 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
pkg/config/testdata/TestAuthDiff/local_enabled_and_disabled.diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
diff remote[auth] local[auth] | ||
--- remote[auth] | ||
+++ local[auth] | ||
@@ -1,14 +1,14 @@ | ||
enabled = false | ||
-site_url = "" | ||
-additional_redirect_urls = ["https://127.0.0.1:3000", "https://ref.supabase.co"] | ||
-jwt_expiry = 0 | ||
-enable_refresh_token_rotation = true | ||
-refresh_token_reuse_interval = 0 | ||
-enable_manual_linking = true | ||
-enable_signup = true | ||
-enable_anonymous_sign_ins = true | ||
-minimum_password_length = 8 | ||
-password_requirements = "letters_digits" | ||
+site_url = "http://127.0.0.1:3000" | ||
+additional_redirect_urls = ["https://127.0.0.1:3000"] | ||
+jwt_expiry = 3600 | ||
+enable_refresh_token_rotation = false | ||
+refresh_token_reuse_interval = 10 | ||
+enable_manual_linking = false | ||
+enable_signup = false | ||
+enable_anonymous_sign_ins = false | ||
+minimum_password_length = 6 | ||
+password_requirements = "lower_upper_letters_digits_symbols" | ||
|
||
[hook] | ||
[hook.mfa_verification_attempt] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
pkg/config/testdata/TestEmailDiff/local_enabled_remote_disabled.diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
pkg/config/testdata/TestMfaDiff/local_enabled_and_disabled.diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
pkg/config/testdata/TestSmsDiff/enable_sign_up_without_provider.diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters