Write signer ID to log if actor ID and signer ID do not match

This commit is contained in:
silverpill 2022-01-04 14:42:03 +00:00
parent 5dc07c3742
commit c7ee5d94ce

View file

@ -348,6 +348,11 @@ fn require_actor_signature(actor_id: &str, signer_id: &str)
-> Result<(), HttpError>
{
if actor_id != signer_id {
log::warn!(
"request signer {} does not match actor {}",
signer_id,
actor_id,
);
return Err(HttpError::AuthError("actor and request signer do not match"));
};
Ok(())