Questions tagged [rauth]

A simple Python OAuth 1.0/a, OAuth 2.0, and Ofly consumer library

Rauth is a simple Python OAuth 1.0/a, OAuth 2.0, and Ofly consumer library built on top of Python Requests.

Features:

  • Supports OAuth 1.0/a, 2.0 and Ofly
  • Service wrappers for convenient connection initialization
  • Authenticated session objects providing nifty things like keep-alive
  • Well tested (100% coverage)
  • Built on Requests (v1.x)
62 questions
1
vote
0 answers

Twitter POST requests failing with rauth

All of my Twitter POST requests are failing. I've followed the examples for authenticating: self.oauth = OAuth1Service( name='twitter', consumer_key=consumer_key, consumer_secret=consumer_secret, …
vgoklani
  • 10,685
  • 16
  • 63
  • 101
1
vote
1 answer

Flask Facebook Mobile Access Token Authentication

I want to be able to login to a Flask based server with Facebook authentication from a mobile application. I understand that in mobile, a user logs into Facebook and is able to retrieve an access token that one can use to authenticate with the…
Paulius Dragunas
  • 1,702
  • 3
  • 19
  • 29
1
vote
1 answer

invalid signature from fatsecret API using rauth

I have successfully followed the rauth OAuth1 examples to get my access tokens, and hence retrieve data from the fatsecret API. I store my access_token and access_token_secret in a shelve database. My problem is that I am receiving an "invalid…
1
vote
1 answer

OAuth Signature not valid error using Rauth, Python against the Vimeo API

Sorry if this is a noob question but I was trying to test and start using the RAuth python library with Vimeo's API. I'm using the access token/secret provided on the app page for the app I registered with Vimeo on the developer's site. So I guess…
KenLFG
  • 950
  • 7
  • 15
1
vote
0 answers

How to run the rauth/flask example?

I am trying to run the example: https://github.com/litl/rauth/blob/master/examples/facebook/facebook.py so I run this example from the command line and the output says: * Running on http://127.0.0.1:5000/ * Restarting with reloader and the program…
user285825
  • 475
  • 4
  • 13
1
vote
1 answer

Python rauth connection to linkedin

I have recently taken over support for an app that uses rauth to connect to linkedin. The code that is failing is: self.linkedin= OAuth1Service( name='linkedin', …
Jim Steil
  • 63
  • 3
1
vote
2 answers

How can I see the actual data Requests sends over the wire?

(This is a follow-up question to this one) How can I tell urllib3 to log the FULL request, including, but not limited to: URL query parameters headers body and anything else which is sent inside the request (I am not sure there is anything else,…
blueFast
  • 41,341
  • 63
  • 198
  • 344
1
vote
1 answer

Specifiy oauth_callback URL for OAuth1 services (twitter)

I am trying to provide seamless login with twitter to my web application. For that, I need twitter to redirect to a specific URL after the user has authorized my application. I do not want the user to be forced to copy paste a PIN to authorize the…
blueFast
  • 41,341
  • 63
  • 198
  • 344
1
vote
1 answer

Authenticating with imaplib.IMAP4 and OAuth without OAuth2

I'm using web.py to build a simple server that learns on a user's gmail messages. I've gone through the OAuth flow using the rauth library and I now have the access token. I now want to use imaplib to pull down the messages for processing. However,…
NealJMD
  • 864
  • 8
  • 15
1
vote
1 answer

How to detect expired access tokens when creating the session?

I have the following test program: from rauth.service import OAuth1Service, OAuth2Service SUPPORTED_SERVICES = { 'twitter' : ( 'OAuth1', 'twitter', 'https://api.twitter.com/oauth', 'request_token', 'access_token', 'authorize',…
blueFast
  • 41,341
  • 63
  • 198
  • 344
1
vote
1 answer

Why does Requests raise this SSLError when trying to access Twitter's API?

I am attempting to use rauth to do oauth with twitter, but it seems to be failing with the following error: requests.exceptions.SSLError: [Errno 1] _ssl.c:504: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol After some testing,…
Alex
  • 293
  • 3
  • 10
0
votes
0 answers

Why can I only make GET requests and not POST requests with this python code?

I'm trying to get this Etrade stuff up an running.... so far i have: from rauth import OAuth1Service import webbrowser def getSession(): # Create a session # Use actual consumer secret and key in place of 'foo' and 'bar' service =…
Babosura
  • 21
  • 3
0
votes
1 answer

Python rauth - do POST requests work?

I have an application that uses python2.7 and rauth to communicate with the etrade api. Getting the etrade verification token and setting up an authorized session works, and I can successfully execute GET accesses like this: url =…
geekbrit
  • 101
  • 4
0
votes
1 answer

Khan Academy API: HTTP Response was too large python

This is my first question so bear with me. I tried to look for some solutions prior to posting. Yay me. I am using the Khan academy API and have customized a few things in my python rauth-based authentication script. It works. However, When I try to…
0
votes
1 answer

Error 901: Invalid redirect_uri: Given URL is not permitted by the Application configuration

I'm trying to set up a Flask login system using Rauth however I receive the error: { "error": { "message": "Invalid redirect_uri: Given URL is not permitted by the Application configuration", "type": "OAuthException", "code":…
Pav Sidhu
  • 6,724
  • 18
  • 55
  • 110