summaryrefslogtreecommitdiff
path: root/rest/rest-proxy.c
Commit message (Collapse)AuthorAgeFilesLines
* auth: remove auth from proxy and callGünther Wagner2022-02-011-64/+9
| | | | | Currently it has not practical use. I will rethink how to implement this in nicer way in order to make one-request basic auths possible.
* rest-proxy: modernized and alignedGünther Wagner2022-01-121-32/+37
|
* OAuth2 Pkce WorkflowGünther Wagner2022-01-121-2/+2
|
* Port to libsoup3Carlos Garcia Campos2021-11-041-18/+191
|
* RestProxy: Remove unused session_syncTimm Bäder2016-07-191-1/+0
|
* proxy: Remove use of libsoup-gnomeChristophe Fergeau2016-07-191-8/+0
| | | | | | | It has been deprecated for a long while, and we were only using it for proxy support. However, now that we switched to using SoupSession rather than SoupSession{Sync,Async}, a default proxy resolver will be used, so we don't need to set it explicitly.
* Add more missing precondition checksTimm Bäder2016-07-141-0/+1
|
* rest-proxy: Fix precondition in new_callTimm Bäder2016-07-141-1/+5
|
* rest-proxy: Add some missing preconditionsTimm Bäder2016-07-141-2/+9
|
* RestProxy(Call): Simplify _disposeTimm Bäder2016-06-201-5/+1
|
* rest-proxy: Use G_DEFINE_TYPE_WITH_PRIVATETimm Bäder2016-06-201-24/+11
|
* RestProxy: Remove SoupSession[A]sync usageTimm Bäder2016-06-201-29/+2
| | | | | priv->session was a SoupSession since the last commit, which also removed every practical usage or priv->session_sync.
* RestProxyCall: Use GTaskTimm Bäder2016-06-201-1/+1
|
* Add rest_proxy_add_soup_feature()Christophe Fergeau2014-08-251-0/+36
| | | | | | | | | | | | | | | | | | | This function can be helpful if one wants more control over libsoup features than what librest simple API provide. For example, to get full access to libsoup cookie API (say to be able to add arbitrary cookies to the soup session), one can do: RestProxy *proxy = g_object_new(REST_TYPE_PROXY, "url-format", url, "disable-cookies", TRUE, NULL); SoupSessionFeature *cookie_jar = SOUP_SESSION_FEATURE(soup_cookie_jar_new ()); rest_proxy_add_soup_feature(proxy, cookie_jar); It's then possible to use all the soup_cookie_* methods to deal with cookies. https://bugzilla.gnome.org/show_bug.cgi?id=728340
* Fix annotationsEmmanuele Bassi2014-03-101-3/+4
| | | | | | Syntax matters. https://bugzilla.gnome.org/show_bug.cgi?id=712747
* Attach SoupLogger after SoupCookieJarChristophe Fergeau2013-11-141-10/+10
| | | | | | | | The SoupLogger instance needs to be attached last (at least after the SoupCookieJar librest uses), otherwise REST_DEBUG=proxy will not dump the cookie headers added by the SoupCookieJar instance. https://bugzilla.gnome.org/show_bug.cgi?id=712231
* Add RestProxy::ssl-ca-file propertyyChristophe Fergeau2013-09-201-1/+27
| | | | | | This property maps to the SoupSession::ssl-ca-file property, and allows to specify a file that contains the CAs to use to verify the certificates we'll get during a TLS session.
* Add marshaller for RestProxy::authenticate signalChristophe Fergeau2013-07-051-1/+3
| | | | | | | | g_cclosure_marshal_generic() was only introduced in glib 2.30, for older glib we need to specify the marshaller to use. If only NULL is passed, we get a segfault when trying to invoke the signal. https://bugzilla.gnome.org/show_bug.cgi?id=703642
* build: Fix previous commitColin Walters2012-08-221-1/+1
| | | | Need to use #ifdef here, not #if.
* Do not set REST_SYSTEM_CA_FILE session attribute while building with ↵Javier Hernández2012-08-221-0/+2
| | | | --without-ca-certificates
* Propagate RestProxyAuth object in ::authenticate signalChristophe Fergeau2012-06-281-6/+21
| | | | | | | | This will make it possible to pause/resume the current call during authentication callbacks to be able to get back to the mainloop to get authentication credentials. https://bugzilla.gnome.org/show_bug.cgi?id=658937
* Add RestProxy::authenticate signalChristophe Fergeau2012-06-281-5/+50
| | | | | | | | | | If caught by application, this signal can be used to set the credentials to use when authentication is needed. If not caught, librest behaviour will be unchanged (try to use what the username/password properties were set to first, and don't try to reuse them if this fails). https://bugzilla.gnome.org/show_bug.cgi?id=658937
* Allow to disable libsoup strict SSL checkChristophe Fergeau2012-06-081-1/+27
| | | | | | | This is needed in order to access REST services over https using self-signed certificates. https://bugzilla.gnome.org/show_bug.cgi?id=663786
* Avoid infinite loop with wrong HTTP credentialsChristophe Fergeau2012-06-071-1/+2
| | | | | | | | | | | | | | When provided with wrong credentials, libsoup will try to connect and emit its 'authenticate' signal as long as its callback calls soup_auth_authenticate. It will fail the request and report to the caller if this function is not called. Since the 'retrying' parameter to the 'authenticate' callback lets us know when the credentials we provided are the wrong ones, this commit makes sure we stop calling soup_auth_authenticate after trying the credentials once. Without this, libsoup will try the same request again and again without ever returning when provided with wrong credentials. https://bugzilla.gnome.org/show_bug.cgi?id=658937
* assorted introspection fixesEvan Nemerson2012-05-031-1/+1
| | | | Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=675213
* rest-proxy: add some basic documentationRoss Burton2012-03-271-0/+9
|
* add username/password supportMarc-André Lureau2011-12-081-3/+89
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=658937
* proxy: Force all SSL certificates to be trustedlibrest-0.7.12Rob Bradford2011-11-101-0/+10
| | | | | | | By setting the CA file we make it a certificate error if the certificate is self-signed. Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=663783
* Add "disable-cookies" construction property to RestProxy.librest-0.7.9Eitan Isaacson2011-03-291-7/+33
| | | | | | | This is neccessary for Vimeo because of a bug where we get a 500 error if we pass along the cookie it provides. Fixes: https://bugs.meego.com/show_bug.cgi?id=15015
* proxy: Fix compiler warningRob Bradford2010-09-061-1/+1
|
* Fix code formattingRoss Burton2010-09-011-1/+2
|
* Add cookie support to rest-proxyGary Ching-Pang Lin2010-09-011-0/+5
| | | | Signed-off-by: Gary Ching-Pang Lin <chingpang@gmail.com>
* Minor documentation fixesRoss Burton2010-08-041-1/+1
|
* Fix leak of soup logger instancesJonathon Jongsma2010-05-281-4/+7
| | | | | | | When adding a feature, the soup session takes a reference on the feature, so we need to unref it after adding in order for it not to leak. http://bugs.meego.com/show_bug.cgi?id=2500
* Use the session callback instead of finished (BMC#842)Ross Burton2010-05-141-4/+6
| | | | | | | | Use the completed callback in soup_session_queue_message instead of connecting to finished on the message itself. I'm not entirely why the behaviour is different but this fixes #842 where an async call make inside another async call would end up with the original message "finishing" again, causing infinite loops.
* Don't check for dispose or finalize when chaining upRoss Burton2010-05-141-5/+3
|
* proxy/proxy-call/xml-parser: Guard public function entry pointsRob Bradford2010-04-151-8/+40
| | | | Fixes: http://bugzilla.meego.com/show_bug.cgi?id=273
* Enable soup debugging on synchronous callsMatt Wood2009-06-291-0/+2
|
* Add a sync SoupSession to RestProxy and expose _send_messageRoss Burton2009-05-291-0/+19
|
* If PROXY debugging is on, turn on full soup debuggingRoss Burton2009-05-151-0/+7
|
* Enable the GNOME proxy resolver feature if building WITH_GNOMERoss Burton2009-02-111-2/+10
|
* Add rest_proxy_get_user_agentRoss Burton2009-02-101-0/+8
|
* Add a user-agent property and rest_proxy_set_user_agentRoss Burton2009-02-101-1/+26
|
* Add license header.Rob Bradford2009-01-151-0/+22
|
* Add a rest_proxy_call_cancel function to cancel an issued call.Rob Bradford2008-11-201-0/+11
| | | | | This function is now used by the weak notify handler to cancel the call when the weakly referenced object goes away.
* Remove deprecated functionsRob Bradford2008-11-201-323/+0
| | | | | The functionality that these functions provided can be achieved using RestProxyCall and rest_proxy_simple_run.
* Fix leak of url in rest_proxy_call_raw_async_valistRob Bradford2008-11-181-0/+1
|
* Document rest_proxy_newRoss Burton2008-09-191-0/+14
|
* Merge branch 'master' into rossRoss Burton2008-09-171-107/+115
|\
| * Add start of infrastructure for error handlingRob Bradford2008-09-161-0/+6
| |