httpie / cli

🥧 HTTPie CLI — modern, user-friendly command-line HTTP client for the API era. JSON support, colors, sessions, downloads, plugins & more.
https://httpie.io
BSD 3-Clause "New" or "Revised" License
33.22k stars 3.67k forks source link

Pluggable Auth Types #238

Closed jvantuyl closed 10 years ago

jvantuyl commented 10 years ago

Ideally, it would be nice to add new authorization types as separate packages.

For example, "pip install httpie-auth-aws" to add processing for AWS-style service auth would trivially turn httpie into (essentially) a powerful AWS client without introducing unnecessary dependencies into the core of httpie.

jvantuyl commented 10 years ago

This is obviously a feature request. I would expect it's not too hard to provide the plugin-detection via entry_points. If you'd be willing to entertain a patch, I could do that at some point.

jkbrzt commented 10 years ago

This is already in place, actually. The API isn't final and will soon change, so it's not really documented anywhere. But there already are some plugins:

https://github.com/jakubroztocil/httpie#auth-plugins

https://github.com/jakubroztocil/httpie/blob/master/httpie/plugins/base.py#L14

jvantuyl commented 10 years ago

facepalm How did I miss that?

Time to start work on an AWS one...

jkbrzt commented 10 years ago

No probs :smiley:

jkbrzt commented 10 years ago

And looking forward to the AWS auth plugin :+1: