summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-09-17 20:27:22 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-09-17 20:27:22 -0700
commit4d60093e537ec3a28e12908f85d0195b79f5a8e4 (patch)
tree36854c89437a15c8250babb1885823673d243e41
parent050a6ea0eb89241f70adc72cc5e6e62369c3ada1 (diff)
downloadfatcat-4d60093e537ec3a28e12908f85d0195b79f5a8e4.tar.gz
fatcat-4d60093e537ec3a28e12908f85d0195b79f5a8e4.zip
remove '@' from archive.org ident
-rw-r--r--python/fatcat_web/auth.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/fatcat_web/auth.py b/python/fatcat_web/auth.py
index 860bd3dc..c3f7fc05 100644
--- a/python/fatcat_web/auth.py
+++ b/python/fatcat_web/auth.py
@@ -126,7 +126,7 @@ def handle_ia_xauth(email, password):
FakeOAuthRemote = namedtuple('FakeOAuthRemote', ['name', 'OAUTH_CONFIG'])
remote = FakeOAuthRemote(name='archive', OAUTH_CONFIG={'api_base_url': Config.IA_XAUTH_URI})
oauth_info = {
- 'preferred_username': ia_info['itemname'],
+ 'preferred_username': ia_info['itemname'].replace('@', ''),
'iss': Config.IA_XAUTH_URI,
'sub': ia_info['itemname'],
}