Skip to content

no proxy support in restkit oauth? #142

@cwisbach

Description

@cwisbach

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions