httprb / http

HTTP (The Gem! a.k.a. http.rb) - a fast Ruby HTTP client with a chainable API, streaming support, and timeouts
MIT License
3.01k stars 321 forks source link

Do we have support for OAuth1.0 and OAuth2.0 like POSTMAN Tool? #683

Closed rkhapre closed 3 years ago

rkhapre commented 3 years ago

Hi All, Currently i see we have support for Basic Authentication with username and password. Do we have support for OAuth1.0 and OAuth2.0 like POSTMAN Tool? Does anyone tried or used code to support httprb?

Please let me know if this is something possible with this gem?

Thanks

tarcieri commented 3 years ago

There is no integrated OAuth support, no.

You need to use a 3rd party OAuth library to obtain an OAuth token, then pass it using the Authorization header.