http signatures: immediately fail validation attempt if no actor keys can be found
This commit is contained in:
parent
b12fe63a36
commit
29c3bf4b5a
|
@ -74,6 +74,9 @@ async def fetch_actor_key(actor):
|
||||||
|
|
||||||
async def validate(actor, request):
|
async def validate(actor, request):
|
||||||
pubkey = await fetch_actor_key(actor)
|
pubkey = await fetch_actor_key(actor)
|
||||||
|
if not pubkey:
|
||||||
|
return False
|
||||||
|
|
||||||
logging.debug('actor key: %r', pubkey)
|
logging.debug('actor key: %r', pubkey)
|
||||||
|
|
||||||
headers = request.headers.copy()
|
headers = request.headers.copy()
|
||||||
|
|
Loading…
Reference in a new issue