From f4ab979b594f98e7e216b50930c8755f805fe3ba Mon Sep 17 00:00:00 2001 From: Aaron Tan Date: Tue, 26 Sep 2017 16:04:52 -0400 Subject: [PATCH] Prevent slugify username from social sso backends Relates #7684 of ansible-tower. Slugify username in python-social-auth means disallowing any non-alphanumerial characters, which is an over-kill for awx/tower, thus disabling it. Signed-off-by: Aaron Tan --- awx/settings/defaults.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/settings/defaults.py b/awx/settings/defaults.py index b35b0ad376..c1d6a053c9 100644 --- a/awx/settings/defaults.py +++ b/awx/settings/defaults.py @@ -519,7 +519,7 @@ SOCIAL_AUTH_INACTIVE_USER_URL = '/sso/inactive/' SOCIAL_AUTH_RAISE_EXCEPTIONS = False SOCIAL_AUTH_USERNAME_IS_FULL_EMAIL = False -SOCIAL_AUTH_SLUGIFY_USERNAMES = True +#SOCIAL_AUTH_SLUGIFY_USERNAMES = True SOCIAL_AUTH_CLEAN_USERNAMES = True SOCIAL_AUTH_SANITIZE_REDIRECTS = True