Skip to content

Commit b669727

Browse files
committed
update auth validation
1 parent 7fbee16 commit b669727

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sinch/domains/authentication/webhooks/v1/authentication_validation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def validate_signature_header(
3333
return False
3434

3535
expected_signature = compute_hmac_signature(body, callback_secret)
36-
return signature == expected_signature
36+
return hmac.compare_digest(signature, expected_signature)
3737

3838

3939
def normalize_headers(headers: Dict[str, str]) -> Dict[str, str]:

0 commit comments

Comments
 (0)