Write signer ID to log if actor ID and signer ID do not match
This commit is contained in:
parent
5dc07c3742
commit
c7ee5d94ce
1 changed files with 5 additions and 0 deletions
|
@ -348,6 +348,11 @@ fn require_actor_signature(actor_id: &str, signer_id: &str)
|
||||||
-> Result<(), HttpError>
|
-> Result<(), HttpError>
|
||||||
{
|
{
|
||||||
if actor_id != signer_id {
|
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"));
|
return Err(HttpError::AuthError("actor and request signer do not match"));
|
||||||
};
|
};
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|
Loading…
Reference in a new issue