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
2
votes
1 answer

need some help authenticating to github API with python

I have followed this tutorial to authenticate to the Github API using Python. Though, for me it doesn't work, when I go to localhost:5000 I'm getting a "this webpage is not available" message. it just says that it's started at localhost:5000 and…
user3640960
  • 99
  • 1
  • 1
  • 7
2
votes
1 answer

How do I get the oauth_verifier for a session in Rauth

I'm using Rauth for my requests to the Beatport API. The follwing is my current code. from rauth import OAuth1Service beatport = OAuth1Service( name='beatport', consumer_key='xxxxxxxxxxxxxx', consumer_secret='xxxxxxxxxxxxxxxxxx', …
Unknown Coder
  • 783
  • 3
  • 12
  • 23
2
votes
1 answer

Properly creating OAuth2Service with Rauth and Django

I am using rauth to authentication against stripe connect. In doing so I am needing to instantiate a OAuth2Service for use in multiple views. Right now my views file looks a lot like this (and works), but this just feels wrong: from rauth.service…
Ken I.
  • 450
  • 1
  • 3
  • 8
2
votes
1 answer

rauth/flask: How to login via Twitter?

The provided example in rauth is using the PIN instead of the callback. I don't understand how this should work via web callback. 1) Minor problem: According to twitter, if oauth_callback URL is passed in, then it should be used instead whatever…
Houman
  • 64,245
  • 87
  • 278
  • 460
2
votes
2 answers

Incorrect URL without an access token for facebook login using rauth

I have the code from rauth site: https://github.com/litl/rauth/blob/master/examples/facebook-cli.py (The code can be found at the end of this post for reference) running the program in the command line will open a firefox window and the following…
user285825
  • 475
  • 4
  • 13
2
votes
2 answers

getting the facebook access token from url in flask

I am writing an app using flask. I am using the RAuth module for OAuth. The url encoded access token that facebook is returning is formatted like www.myurl.com/authCallback#access_token=. I tried getting the raw string of the url using…
Charlie Andrews
  • 1,457
  • 19
  • 28
2
votes
1 answer

How to refresh a token with Rauth python library?

I'm not so strong on Oauth so need some help to implement an interface to my FreeAgent accounting system, they provide an Oauth 2 API. I want to code in standard Python and it seems the best library is Rauth. My problem is refreshing tokens. Is…
Greggy
  • 29
  • 2
2
votes
2 answers

Unable to access LinkedIn connections using rauth library

I was trying out this Github example. I get a 403, Access to connections denied error and it returns KeyError: '_total'. r_network option is present. Has anyone faced this issue? Also if you look at this Python docs page, the 'requests' library is…
1
vote
0 answers

flask does not see rauth even if installed

I am following this simple example to set up a OAuth simple app but something very odd happens: flask raise an error related to module rauth absence even if it is installed! Here the commands: git clone…
cccnrc
  • 1,195
  • 11
  • 27
1
vote
0 answers

rauth with Flask returns 404 on all requests

Running into an issue where no requests from OAuth2Session object are being fulfilled. curl GET "https://api.spotify.com/v1/me/top/artists" -H "Authorization: Bearer
leegenes
  • 31
  • 2
1
vote
1 answer

rauth: the JSON object must be str, not 'bytes'

Trying to implement a OAuth2 authentication on Django 1.10 + Python 3, I'm getting this error: rauth: the JSON object must be str, not 'bytes' It happens on the line calling: session = sso.get_auth_session(data=data, decoder=json.loads). If i…
Leonardo Pessoa
  • 248
  • 4
  • 16
1
vote
0 answers

Python TypeError When Receiving Server Response

I am experimenting with Google App Engine and have decided to use the Yelp API as my data source. In order to authenticate I need to some some keys and tokens to the Yelp server. The issue is on the response. I keep getting: TypeError: expected…
1
vote
2 answers

Import Error in PythonAnywhere

I am using the rauth library in my Flask app. The error log shows the error ImportError: No module named rauth. How to deal with this problem.
padfoot27
  • 517
  • 9
  • 13
1
vote
1 answer

Flask Social Authentication Class Issue

I am working off of a Miguel Grinberg tutorial on social authentication. On the homepage template I have this code, and I removed the twitter portion from the tutorial:

I don't know you!

metersk
  • 11,803
  • 21
  • 63
  • 100
1
vote
0 answers

Inner-dict post data with rauth

I'm using rauth to communicate with the Bricklink API. The basic API implementation can be found here and the documentation provided by Bricklink can be found here. Method classes are being built upon the API class to communicate with…
Robbietjuh
  • 848
  • 1
  • 8
  • 22