Alternatives to #main-key

See https://datatracker.ietf.org/doc/html/rfc6901#section-6
This commit is contained in:
Bob Mottram committed 2022-08-27 20:15:58 +01:00
1 parent ca96504528
commit 7ef1ba2196
2 files changed
+4

No files matched your search

+2
View File
@@ -149,6 +149,8 @@ def get_person_pub_key(base_dir: str, session, person_url: str,
return None
if '#/publicKey' in person_url:
person_url = person_url.replace('#/publicKey', '')
elif '/main-key' in person_url:
person_url = person_url.replace('/main-key', '')
else:
person_url = person_url.replace('#main-key', '')
users_paths = get_user_paths()
+2
View File
@@ -923,6 +923,8 @@ def person_lookup(domain: str, path: str, base_dir: str) -> {}:
"""
if path.endswith('#/publicKey'):
path = path.replace('#/publicKey', '')
elif path.endswith('/main-key'):
path = path.replace('/main-key', '')
elif path.endswith('#main-key'):
path = path.replace('#main-key', '')
# is this a shared inbox lookup?