OAuth Invalid consumer key

Hello,

I try to understand how works the API to connect using OAuth but it doesn't work. I tried both on an personal instance and on identi.ca
I registered an application on /settings/oauthapps/ and got a consumer_key and a consumer_secret.

I tried using the url : /api/oauth/request_token?oauth_callback=oob&consumer_key=12345&consumer_secret=54321 (keys are copy-paste, I checked, no error there) but I have an error "Invalid consumer key".
(If you want, send me a PM, I can send you a screen of the config with the consumer key and secret.)

I tried also using the instructions form this post
http://demongin.org/blog/862/

I have an SSL error with identi.ca
"httplib2.SSLHandshakeError: [Errno 1] _ssl.c:503: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed"

With my statusnet instance (no SSL), I got the content 'Invalid consumer' with an error 401.

Any idea why ? Am I doing something wrong ?

Thank you

Comments

  • I guess the no reply was a way to say "STFW". And it was a good idea. So, just for the sake of correction, if somebody pass by with the same problem...

    Instead of doing dummy request from the url, I use the api with a tool like request-oauth in python
    https://github.com/maraujop/requests-oauth

    OAuthHook.consumer_key = ckey
    OAuthHook.consumer_secret = csecret
    oauth_hook = OAuthHook()
    client = requests.session(hooks={'pre_request': oauth_hook})
    response = client.post('%soauth/request_token' % (url), {'oauth_callback': 'oob'})
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Google Sign In with OpenID