Add debug logging on signature verification failure (#26637)
This commit is contained in:
parent
075cc8e8a6
commit
25bf640629
1 changed files with 2 additions and 0 deletions
|
@ -119,6 +119,8 @@ module SignatureVerification
|
||||||
private
|
private
|
||||||
|
|
||||||
def fail_with!(message, **options)
|
def fail_with!(message, **options)
|
||||||
|
Rails.logger.warn { "Signature verification failed: #{message}" }
|
||||||
|
|
||||||
@signature_verification_failure_reason = { error: message }.merge(options)
|
@signature_verification_failure_reason = { error: message }.merge(options)
|
||||||
@signed_request_actor = nil
|
@signed_request_actor = nil
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue