Metadata-Version: 2.1
Name: httpie-mauth
Version: 0.0.4
Summary: MAuth plugin for HTTPie
Home-page: https://github.com/masongup/httpie-mauth
License: MIT
Author: Mason Gup
Author-email: masongup@gmail.com
Requires-Python: >=3.8,<4.0
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Dist: PyYAML (>=6.0,<7.0)
Requires-Dist: httpie (>=3.0.0,<4.0.0)
Requires-Dist: mauth-client (>=1.2.1,<2.0.0)
Project-URL: Repository, https://github.com/masongup/httpie-mauth
Description-Content-Type: text/markdown

# HTTPie mauth

This is a plugin for the [HTTPie](https://github.com/jakubroztocil/httpie)
command line request library that allows it to send mauth-authenticated requests.

To use this, you will need:

* A MAuth App ID
* A MAuth private key whose corresponding public key is registered with the
MAuth server that the target service is using
* A MAuth config file in a supported location, one of:
    * `~/.mauth_config.yml`
    * `./config/mauth.yml`
    * `./mauth.yml`

The format of that file should be as follows:

```yaml
development:
  app_uuid: a36c9238-c9c8-4de9-a385-07dfe6dc1fc4
  private_key_file: /Users/mgup/.mauth_key
```

You can then issue signed requests as follows:

`http --auth-type mauth https://example.com`

You can pass the `-v` option to see the outgoing header. Validating the
signature of the response is not currently supported.

