fep-521a has changed

main
Bob Mottram 2023-10-19 14:30:47 +01:00
parent 07cf4e70b3
commit a390b3413e
1 changed files with 3 additions and 3 deletions

View File

@ -174,9 +174,9 @@ def get_actor_public_key_from_id(person_json: {}, key_id: str) -> (str, str):
pub_key = person_json['publicKey']['publicKeyPem']
if person_json['publicKey'].get('id'):
pub_key_id = person_json['publicKey']['id']
elif person_json.get('authentication'):
if isinstance(person_json['authentication'], list):
for key_dict in person_json['authentication']:
elif person_json.get('assertionMethod'):
if isinstance(person_json['assertionMethod'], list):
for key_dict in person_json['assertionMethod']:
if not key_dict.get('id') or \
not key_dict.get('publicKeyMultibase'):
continue