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
14
votes
2 answers

Google OAuth token request returns "invalid_client": "Unauthorized"

Trying to get OAuth2 Google login working, this is the raw request that my app makes: Method: POST URL: https://www.googleapis.com/oauth2/v3/token Headers: Content-Type: application/x-www-form-urlencoded Values: client_id:…
Jaza
  • 2,956
  • 2
  • 23
  • 26
11
votes
3 answers

How to give user JWT token after OAuth provider redirect?

I'm implementing OAuth (using rauth) and will be giving JWT tokens (using flask-jwt), javascript frontend (Angular1). I have done it for classical cookie/session based app. It works. Now I want to do it with JWT tokens. If I understand correctly,…
gcerar
  • 920
  • 1
  • 13
  • 24
10
votes
1 answer

rauth2 Decoder failed to handle access_token when I tried to connect with Box.com's API

This is the code I have for connecting to Box, but I can't get box_storage.get_auth_session(data=data) to work. from rauth import OAuth2Service box_storage = OAuth2Service( name='Box', …
rushd
  • 273
  • 2
  • 10
6
votes
1 answer

Reuse OAuth1 authorization tokens with rauth

I have the following implementation of a twitter client using rauth (OAuth1), based on the twitter-timeline-cli.py script in the rauth examples: from rauth.service import OAuth1Service class TwitterClient: KNOWN_USERS = { 'user1' :…
blueFast
  • 41,341
  • 63
  • 198
  • 344
5
votes
0 answers

error using rauth in app engine (Permission denied)

I have a app engine app, using oauth and rauth, i'm trying to use Facebook, Twitter and google to login. When i run it locally works, but in production i got this error, but only with google plus, with facebook works fine. ('Connection aborted.',…
Kristian Damian
  • 1,360
  • 3
  • 22
  • 43
5
votes
1 answer

Multiple requests over a Rauth OAuth 1.0 session

We're using Rauth to connect to various OAuth 1 APIs. It works fine for a single request, but trying to do 2 or more requests against the given session results in 401 not authorized errors from the APIs. Twitter API example: import requests from…
Yarin
  • 173,523
  • 149
  • 402
  • 512
3
votes
1 answer

Using LinkedIn oauth2.0 with rauth

I am trying to connect to LinkedIn using the OAuth2Service provided by rauth. I successfully retrieve the access token. To do so, I configured a specific decoder for the json response. json_decoder = json.loads params = {'decoder':…
t_-_t
  • 138
  • 2
  • 6
3
votes
1 answer

Getting 400 from Bitbucket OAuth

from rauth import OAuth1Service OAUTH_REQUEST = "https://bitbucket.org/!api/1.0/oauth/request_token" OAUTH_AUTH = "https://bitbucket.org/!api/1.0/oauth/authenticate" OAUTH_ACCESS = "https://bitbucket.org/!api/1.0/oauth/access_token" service =…
CppLearner
  • 16,273
  • 32
  • 108
  • 163
3
votes
1 answer

Connecting to LinkedIn API with rauth

I'm trying to get a website to connect to LinkedIn, I know I have to use OAuth tokens to connect to it, and I have seen the examples on the LinkedIn developer site, however, they all use the OAuth2 library and the site that I'm working with uses the…
Hassan Khan
  • 766
  • 3
  • 9
  • 21
3
votes
2 answers

How do you use rauth with Django?

The python lib mentioned in OAuth website rauth seems to be simple and best one to use. So, I want to use it in Django and unable to actually implement it. Here is my issue. # I do something like this initially from rauth.service import…
Dennis Ritchie
  • 630
  • 1
  • 9
  • 20
3
votes
1 answer

Is it possible to use OAuth 2.0 without a redirect_uri or without setting up a complex server?

I got to transfer some files to a remote server for which I have to perform OAuth2.0 to get access token and then simply perform a POST request to upload the files. Now I am too lazy to setup a Django project on cloud and then perform OAuth2 while…
Dennis Ritchie
  • 630
  • 1
  • 9
  • 20
2
votes
1 answer

How to use sessions with MongoEngine and Flask-Login?

I'm using Flask-Login, MongoEngine, OAuth with Rauth for Flask. I need to save my user's session in MongoEngine but I don't know how to do it. My code is that: @app.route('/callback/') def oauth_callback(provider): if not…
laurajaime
  • 379
  • 1
  • 3
  • 14
2
votes
1 answer

How to use React with Python and keep both frontend and backend separate?

I am using React as frontend and Python & Flask as my backend with Rauth as OAuth2 for Facebook login and storing details of every user in db and using flask_login as protection. Those information are Sports, Education, Phone number and other…
Rahul Shrivastava
  • 1,391
  • 3
  • 14
  • 38
2
votes
1 answer

Implementing OAuth2 with Rauth for vk.com

I'm trying to implement Oauth2 authorization using Rauth for vk.com provider and I have the following issue: As far as I know there is no way to obtain users email address through vk.com api call, but it sends email address with access_token in json…
Roman Godov
  • 23
  • 1
  • 5
2
votes
0 answers

How correct get products by id from rest api magento?

I try get products from magento rest api by several id. But don't understand how make this correct. Now I use this approach for make filters: api/rest/products/?filter[0][attribute]=entity_id&filter[0][in][0]=564&filter[0][in][1]=563 This filter…
Greg Eremeev
  • 1,760
  • 5
  • 23
  • 33
1
2 3 4 5