https://github.com/knagy/mitmproxy-escher
Use your favorite HTTP client and let mitmproxy do the Escher signing.
https://github.com/knagy/mitmproxy-escher
escherauth mitmproxy-addons
Last synced: 6 months ago
JSON representation
Use your favorite HTTP client and let mitmproxy do the Escher signing.
- Host: GitHub
- URL: https://github.com/knagy/mitmproxy-escher
- Owner: knagy
- License: mit
- Created: 2017-11-19T10:57:50.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-11-11T15:15:12.000Z (7 months ago)
- Last Synced: 2024-12-11T23:36:23.647Z (6 months ago)
- Topics: escherauth, mitmproxy-addons
- Language: Python
- Homepage:
- Size: 40 KB
- Stars: 5
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mitmproxy-escher
Sign [mitmproxy](https://mitmproxy.org/) requests with [Escher](https://escherauth.io/).

## Installation
```
pip3 install mitmproxy-escher
```Note: this module does not work with mitmproxy's pre-built self-contained binaries.
## Configuration
Required parameters are apiKey, apiSecret and credentialScope. Section names can contain wildcard characters.
```
[*.example.org]
apiKey=KEY
apiSecret=SECRET
credentialScope=credential/scope
hashAlgo=SHA256
algoPrefix=EMS
vendorKey=EMS
authHeaderName=X-EMS-Auth
dateHeaderName=X-EMS-Date
```## Usage
Start `mitmproxy` with the addon:
```
mitmproxy -s "$(python3 -m mitmproxy_escher)" --set escher_config=/path/to/config.ini
```Make requests through the proxy:
```
curl -k -x localhost:8080 https://httpbin.org/headers
```