Closed jvantuyl closed 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.
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
facepalm How did I miss that?
Time to start work on an AWS one...
No probs :smiley:
And looking forward to the AWS auth plugin :+1:
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.