From 04fb2c1d0683662161f1ba481d2c33e59242aade Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Fri, 7 Jun 2019 14:49:17 -0700 Subject: remove periods from oauth usernames --- python/fatcat_web/auth.py | 1 + 1 file changed, 1 insertion(+) (limited to 'python/fatcat_web') diff --git a/python/fatcat_web/auth.py b/python/fatcat_web/auth.py index 06c8475b..a83fd73f 100644 --- a/python/fatcat_web/auth.py +++ b/python/fatcat_web/auth.py @@ -62,6 +62,7 @@ def handle_oauth(remote, token, user_info): else: preferred_username = user_info['sub'] + preferred_username = preferred_username.replace('.', '') params = fatcat_client.AuthOidc(remote.name, user_info['sub'], iss, preferred_username) # this call requires admin privs (resp, http_status, http_headers) = priv_api.auth_oidc_with_http_info(params) -- cgit v1.2.3