Skip to main content

httpie-asap-auth

PyPi Package PyPi Versions Actions Status Code style: black

ASAP Auth plugin for HTTPie.

Installation

pip install httpie-asap-auth

Python 3.8 through Python 3.14 are supported.

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:

{
    "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.0

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.0
File Size Uploaded Provenance Actions
httpie_asap_auth-0.4.0.tar.gz 5.8 kB Without provenance Details for httpie_asap_auth-0.4.0.tar.gz

Built distribution (wheel)

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

Total release size: 11.8 kB

Release files / httpie_asap_auth-0.4.0.tar.gz

Download URL httpie_asap_auth-0.4.0.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
b64aeb0be438cf3db93a2f9a2da3a80d2f65f2c899e835eeaf32365573e14fab
BLAKE2b-256 checksum
How to use checksums
f33e369bfd4cf8cf89b2d64fcab0a798da81f1b6b823263202c1f9cade9c6db3
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.0-py3-none-any.whl

Download URL httpie_asap_auth-0.4.0-py3-none-any.whl
Size 6.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a3dcb445baa87b2040f930b1e5f8caad6777d4e2d7ee4b8d5f0c3696c5bc47a6
BLAKE2b-256 checksum
How to use checksums
a139862f259b7f36ad865f98686696ff4ac466b187c7b76b4d705029f355d102
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.0

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