mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 09:49:23 +02:00
See #170: federation for channels
This commit is contained in:
parent
c3cb8bc390
commit
5a37d9771e
26 changed files with 501 additions and 40 deletions
|
@ -52,9 +52,13 @@ class SignatureAuthentication(authentication.BaseAuthentication):
|
|||
actor = actors.get_actor(actor_url)
|
||||
except Exception as e:
|
||||
logger.info(
|
||||
"Discarding HTTP request from blocked actor/domain %s", actor_url
|
||||
"Discarding HTTP request from blocked actor/domain %s, %s",
|
||||
actor_url,
|
||||
str(e),
|
||||
)
|
||||
raise rest_exceptions.AuthenticationFailed(
|
||||
"Cannot fetch remote actor to authenticate signature"
|
||||
)
|
||||
raise rest_exceptions.AuthenticationFailed(str(e))
|
||||
|
||||
if not actor.public_key:
|
||||
raise rest_exceptions.AuthenticationFailed("No public key found")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue