benoitc / benoitc/restkit

no proxy support in restkit oauth?

Open
#142 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
404
Forks
70
PR merge metrics
No merged PRs in 30d

Description

Hi,

I used the following sample oauth client example:

from restkit import OAuthFilter, request
import restkit.oauth2 as oauth

consumer = oauth.Consumer(key="your-twitter-consumer-key",
secret="your-twitter-consumer-secret")

request_token_url = "http://twitter.com/oauth/request_token"

auth = oauth.OAuthFilter('*', consumer)

resp = request(request_token_url, filters=[auth])
print resp.body_string()

This is working fine except when you are behind a https proxy.

I tried the following:

c = Client()
c.use_proxy = True
resp = c.request(url, filters=[auth])

But then the request class does not recognise the filters anymore.

Is it possible to override the request class to use a proxy or is there any possibility to use oauth with a proxy?

Any help would be appreciated.

Thanks,
Christian

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.