Increase allowed username length to 64 in the default policy (#2471)

This commit is contained in:
Alex Babel
2024-03-18 11:58:21 +01:00
committed by GitHub
parent 670212b506
commit 39f97396a7
2 changed files with 2 additions and 2 deletions

View File

@@ -19,7 +19,7 @@ violation[{"field": "username", "msg": "username too short"}] {
}
violation[{"field": "username", "msg": "username too long"}] {
count(input.username) >= 15
count(input.username) > 64
}
violation[{"field": "username", "msg": "username contains invalid characters"}] {

View File

@@ -45,7 +45,7 @@ test_short_username {
}
test_long_username {
not allow with input as {"username": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "registration_method": "upstream-oauth2"}
not allow with input as {"username": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "registration_method": "upstream-oauth2"}
}
test_invalid_username {