Skip to main content

httpie-asap-auth

PyPi Package PyPi Versions Actions Status Code style: black

ASAP Auth plugin for HTTPie.

Installation

Python 3.8 through Python 3.15 are supported.

pip install httpie-asap-auth

You should now see asap and asapenv under --auth-type in the $ http --help output.

Usage

http --auth-type=asap --auth=path/to/asap.config http://example.com/

OR, to read from environment variables:

http --auth-type=asapenv --auth=audience[:subject] http://example.com/

Separate multiple audiences with a comma.

Example ASAP Config

Store your ASAP config in a file following this format:

```json
{
    "issuer": "webapp/admin",
    "kid": "webapp/admin/dev.pem",
    "audience": [
        "webapp"
    ],
    "sub": "administration",
    "privateKey": "-----BEGIN RSA PRIVATE KEY-----\n ... \n-----END RSA PRIVATE KEY-----"
}
```

NB. the subject (sub field) is optional.

Example Environment Variables

ASAP_PRIVATE_KEY=data:application/pkcs8;kid=webapp;base64,...
ASAP_ISSUER=webapp/admin

Generate a Data URI

Generate a data URI, with the key in PKCS8 from an RSA private key PEM file:

#!/bin/sh

# Usage: $0 privatekey.pem

KID=$(echo "$1" | sed 's|/|%2F|g')
KEY=$(openssl pkcs8 -topk8 -inform PEM -outform DER -in "$1" -nocrypt | base64 | tr '\n' ' ' | sed 's| ||g')

echo "data:application/pkcs8;kid=$KID;base64,$KEY"

(thanks to Brian McKenna)

Development

Install uv, then create the development environment from the committed lockfile:

make sync

Run the test suite and formatter with the locked dependencies:

make test
make fmt

The formatter runs on Python 3.14 while preserving Python 3.8-compatible syntax.

Upgrade all dependencies and review the resulting lockfile with:

make upgrade

Build the source and wheel distributions with:

make build

Maintainers can publish the built distributions after configuring uv's PyPI credentials:

make publish

Metadata

Release files for httpie-asap-auth 0.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for httpie-asap-auth 0.4.1
File Size Uploaded Provenance Actions
httpie_asap_auth-0.4.1.tar.gz 5.9 kB Without provenance Details for httpie_asap_auth-0.4.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for httpie-asap-auth 0.4.1
File Interpreter ABI Platform Actions
httpie_asap_auth-0.4.1-py3-none-any.whl Python 3 none any Details for httpie_asap_auth-0.4.1-py3-none-any.whl

Total release size: 11.9 kB

Release files / httpie_asap_auth-0.4.1.tar.gz

Download URL httpie_asap_auth-0.4.1.tar.gz
Size 5.9 kB
Tags Source
SHA-256 checksum
How to use checksums
7065462252c1b479fb0e146495123200a18cd2436e73bb3edeeb2468f441021d
BLAKE2b-256 checksum
How to use checksums
fa3d1dff78fdebc394b37df9bad9a7347d9b0a1848b49488e76fb4fa2dc5c828
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / httpie_asap_auth-0.4.1-py3-none-any.whl

Download URL httpie_asap_auth-0.4.1-py3-none-any.whl
Size 6.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
187eec6b224ec308d2c806fe73d6a0cc262add8cfbb5f2e12ef4d7fa17964163
BLAKE2b-256 checksum
How to use checksums
d9aa5571d1aaf9f4f5e35789f453db489ae2cd23221554d9125023494e3c6879
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for httpie-asap-auth 0.4.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page