Httptest

Latest version: v2.1.1

Safety actively analyzes 681812 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

2.1.1

None

2.1.0

OIDC Server

Example relying-party: https://scitt-community.github.io/scitt-api-emulator/oidc.html

Start server `httptest-oidc`

console
$ python -m httptest.oidc \
--issuer https://this-service.example.com \
--audience https://relying-party.example.com \
--addr 0.0.0.0 \
--port 8000 \
--subject test-subject \
--private-key-pem-path private-key.pem \
--token-path token.jwt


Make requests

console
$ curl -H "Authorization: Bearer $(curl https://this-service.example.com/token | jq -r token)" -v https://relying-party.example.com
$ curl -H "Authorization: Bearer $(cat token.jwt)" -v https://relying-party.example.com

2.0.2

2.0.1

**Full Changelog**: https://github.com/pdxjohnny/httptest/compare/0.2.0...2.0.1

0.2.0

**Full Changelog**: https://github.com/pdxjohnny/httptest/compare/0.1.6...0.2.0

0.1.6

Enable passing port and address to bind to for httptest-cache

console
$ httptest-cache https://example.com --port 8080

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.