forked from dghubble/oauth1
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add oauth_body_hash to request headers for non-form-encoded bodies
- Proposal: https://tools.ietf.org/id/draft-eaton-oauth-bodyhash-00.html - Certain Oauth1 servers have checks for a hashed body payload header that gets included in signing of the request. This is important, as it helps avoid a MITM attack-vector where an attacker captures a message, replaces the body, and forwards the remaining message with already signed headers. - Per the linked specification: the oauth_body_hash header is NOT provided when a x-www-form-urlencoded body is provided, but SHOULD be provided for any other body type.
- Loading branch information
Aric Parkinson
committed
Jul 25, 2019
1 parent
f9f59e0
commit 002fce1
Showing
2 changed files
with
50 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters