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

Rauth with google provider and python3

I've got some problem using the rauth library with flask, python3 and google oauth, python2 works without problems. It says TypeError: the JSON object must be str, not 'bytes' Here is the log error: I've found that Issue here and tried to convert…
Marcel Hinderlich
  • 213
  • 1
  • 3
  • 19
0
votes
1 answer

How do I obtain user info (username / id) from Google API using Flask and rauth?

Here is what I have got so far. GOOGLE_AUTH_URI = 'https://accounts.google.com/o/oauth2/auth' GOOGLE_REVOKE_URI = 'https://accounts.google.com/o/oauth2/revoke' GOOGLE_TOKEN_URI = 'https://accounts.google.com/o/oauth2/token' GOOGLE_BASE_URL =…
padfoot27
  • 517
  • 9
  • 13
0
votes
1 answer

Rauth doesn't work with requests_cache

Trying to use requests_cache to utilize the monkey patched Session, to maintain a persisted store for responses, Rauth OAuth1Session doesn't seem to play nice. Assuming keys have been set elsewhere... import requests import…
Jason Harmon
  • 129
  • 5
0
votes
1 answer

Sending multipart data with rauth / requests

I am developing an API-Client for transferring real estates. The interface provided is using Oauth1 and multipart HTTP posts in order to upload attachment data. The service provider wants to have attachments uploaded in a certain format as described…
0
votes
1 answer

How do I open the JSON response to my Twitter search query?

I have this rauth-powered command-line Python script so far: import json from rauth import OAuth1Service twitter = OAuth1Service( name='twitter', consumer_key='[REDACTED]', consumer_secret='[REDACTED]', …
Antrikshy
  • 2,918
  • 4
  • 31
  • 65
0
votes
0 answers

OAuth2Service issues using rauth to yahoo fantasy api

I'm pretty new to connecting to APIs and using OAuth2Service in general. The following has been causing me some issues for a while now and I'm completely stop. My code is as follows: from rauth import OAuth2Service OAUTH_CONSUMER_KEY =…
user1274037
  • 395
  • 1
  • 2
  • 10
0
votes
2 answers

Box API access denied, permission issue when trying to create a folder

I don't know why it's not letting me create a file at Box. I tried to change the settings around, but I still can't find the solution. Here is the code inside my django's view file: #from django.shortcuts import render from django.http import…
rushd
  • 273
  • 2
  • 10
0
votes
1 answer

Can I authenticate with OAuth in a Javascript app without saving a token on the client side with rauth?

I want to be able to authenticate users of an angular.js application using oauth, but I do not want to store any tokens on the frontend because I have seen that it can be fairly complicated to do so securely. Is there a way to pass some sort of…
user1876508
  • 12,864
  • 21
  • 68
  • 105
0
votes
1 answer

Unable to get tokens from get_raw_request_token() in Rauth

I'm using Rauth for requests to the Beatport API The following is a part of my code from rauth import OAuth1Service beatport = OAuth1Service( name='beatport', consumer_key='xxxxxxxxxxxxxxxxxxxxxxxx', …
Unknown Coder
  • 783
  • 3
  • 12
  • 23
0
votes
1 answer

How can i invalidate a twitter bearer token with rauth?

how can i invalidate a bearer token from twitter with rauth?(https://dev.twitter.com/docs/api/1.1/post/oauth2/invalidate_token) I tried to do it via a oauth2 session but it doesn't work. By the way, is there a way to see the complete request which…
el_pedro
  • 32
  • 7
0
votes
1 answer

rauth 0.5.5 failed installation in python 3

generating error as this C:\sankar\rauth-0.5.5.tar\rauth-0.5.5>python setup.py install Traceback (most recent call last): File "setup.py", line 4, in from rauth import __version__ File…
Sanky Cse
  • 171
  • 1
  • 2
  • 8
0
votes
1 answer

Rauth __attrs__ with OAuth2Service.get_session

Having problems with Rauth (or Reqeuests) Oauth2 session usage. Hope the code and error below makes sense. Thanks, Steve Error Message: 'OAuth2Session' object has no attribute '__attrs__' Code: self.auth_service = OAuth2Service( …
daxiang28
  • 545
  • 8
  • 19
0
votes
1 answer

Rauth Library Changes - Python

I'm having a hard time with the changes made to the Rauth library and I was wondering of anybody could help. First I create a Rauth wrapper as such (this is merely an example, not my actual code): service = OAuth2Service( …
user1870035
0
votes
2 answers

How can I persist Facebook access tokens when using Flask and rauth?

When I perform a get_authorize_url request to facebook, I am redirected to the following URL (seen in the browser): http://127.0.0.1:5000/#access_token=sdfsdfasfaf&expires_in=5849 But I am unable to obtain this access_token in flask: it is not in…
blueFast
  • 41,341
  • 63
  • 198
  • 344
0
votes
2 answers

OAuth signature issue

I'm trying to use python with the rauth library to connect to the QBO api on the intuit partner platform, and I've mostly gotten it to work correctly. However, I'm frequently getting errors when sending requests: Exception authenticating OAuth;…
shader
  • 801
  • 1
  • 7
  • 25