adamski / RestRequest

JUCE module for making HTTP requests to REST API's
MIT License
63 stars 8 forks source link

OAuth 1.0 authentication #2

Open JosepBernad opened 5 years ago

JosepBernad commented 5 years ago

I would like to know how to perform a request with OAuth 1.0 authentication (client key and client secret). Is there any way to do it with this library?

Thanks in advance, this repo is really useful!

adamski commented 5 years ago

I've not had to do that yet, this library is a simple wrapper around the JUCE URL class streamlined to interact with REST APIs. I'd welcome a pull request that supports authentication.

JosepBernad commented 5 years ago

Thanks @adamski, I'll have a look when I have time. It's on my todo list!

cyberCBM commented 4 years ago

HI,

@adamski and @JosepBernad I also ran into a similar issue of OAuth 1.0/2.0 authentication. On juce forum, I saw few comments mention that it can be solved using URL and JSON. Any other quick lead to this? If @JosepBernad you tried and got any solution it would be helpful here.

One lead was to use addEscapeChars from URL class to encode URL string for Authorization, but that still give me error code 403 and Server respond "SSL is required".

@adamski -> This module seems awesome work with basic rest requests.

Thanks.

adamski commented 4 years ago

Thanks @cyberCBM. Sorry, no leads on this at the moment. As mentioned already, I'd be very happy to accept a PR for this.