feat: RBAC + SAML support

This commit is contained in:
Markos Gogoulos
2025-04-05 12:44:21 +03:00
committed by GitHub
parent 8fecccce1c
commit 05414f66c7
158 changed files with 6423 additions and 106 deletions

View File

@@ -12,4 +12,12 @@ class ASCIIUsernameValidator(validators.RegexValidator):
flags = re.ASCII
@deconstructible
class LEssRestrictiveUsernameValidator(validators.RegexValidator):
regex = r"^[^\x00-\x1F\\/:*?\"<>|%#&`=~]+$"
message = _("Enter a valid username. This value may contain UTF-8 characters except those reserved for file systems")
flags = 0 # Allow UTF-8 characters
custom_username_validators = [ASCIIUsernameValidator()]
less_restrictive_username_validators = [LEssRestrictiveUsernameValidator]