You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update example to follow HMAC best practice (#5753)
* Update example to follow HMAC best practice
- Using `hmac.compare_digest()` mitigates [timing-based attacks](https://en.wikipedia.org/wiki/Timing_attack) on the signature verification.
- Updated the line to pull the signature header value to use the `.get()` method in order to avoid a `KeyError` exception.
0 commit comments