Questions tagged [flask-oauthlib]
77 questions
0
votes
1 answer
How to create a request object to get a token
I need to create and return a token like this :
@app.route('/account/login', methods=['POST'])
def login():
if user:
...
return authorization.create_token_response(request={
'client_id': '',
…

Luis Souza
- 365
- 1
- 3
- 11
0
votes
1 answer
500 internal server error while authenticating Microsoft graph
I am using python and flask for making web pages. I am trying to authenticate Microsoft graph but its giving an error. Please see the picture below:

Aly Zayn
- 61
- 1
- 4
0
votes
1 answer
Authlib - implicit flow
I have spun up the example-oauth-server and am trying to exercise the implicit flow - I have followed the directions in the documentation and have done the following
step 1 - registered the client; made sure that there was no requirement for client…
0
votes
1 answer
I am keep getting not found error on the POST /api/submit using flask-oauthlib library
I am using flask oauthlib library . I am successfully getting get request however when I am trying update using post , I am getting back 404 not found error
I am following the standard example they gave on the git page…

Mr. Snuffles
- 33
- 2
- 6
0
votes
1 answer
Microsoft Service Api returning invalid grant using oauth2 protocol,using flask application?
I am trying to make an sso using Flask and using library flask_oauthlib
while on selecting the microsoft user to login and clicking multiple times on login results to give me 401 invalid grant error, error like this:
office_sso OAuthException:…

Divyang Bissa
- 13
- 5
0
votes
1 answer
oauthlib creating own oauthlib2 in python falcon
My database look like this
from sqlalchemy.ext.declarative import declarative_base
import os
import time
import datetime
import sys
import uuid
from sqlalchemy import Column, ForeignKey, Integer, String
from sqlalchemy.orm import relationship
from…

Dev Jalla
- 1,910
- 2
- 13
- 21
0
votes
1 answer
OAuth Post Authentication Re-Login
Once the user has gone to the provider and granted access to my web application, I recieve some tokens which I store in Postgres under that user. Once the user logs out, and then at some future time wants to sign back in and clicks "Login in with X"…

Max Bender
- 27
- 4
0
votes
1 answer
Using both OAuth and GAE's Users API within a GAE application
I would like to host my Flask-based web application on GAE.
Regular users are authenticated against Google using flask-oauthlib.
However, I would like to authenticate admin users using GAE's Users API, since it provides, among others, the…

turdus-merula
- 8,546
- 8
- 38
- 50
0
votes
1 answer
Pass username and password to Flask Oauth2 Server (password grant type)
I'm implementing Flask REST API with Flask-Oauthlib and wondering is it ok to pass username and password in URL parameters? For example:
GET…

iqpolar
- 125
- 1
- 2
- 14
0
votes
1 answer
Flask oauth 2 resource owner password flow
I'm using flask-oauthlib module to develop both oauth 2 client and provider
When using resource owner password flow, the provider won't redirect to client's redirect url.
Here is my client code for sending post to provider:
@app.route('/signin',…

Lex
- 23
- 7
0
votes
1 answer
How to use decorators with Flask MethodView (e.g., oauth.require_oauth)
This might be a Python newbie question (i.e., not understanding decorators).
I have a view class that I want to protect by requiring OAuth authentication (I have all of the OAuth stuff set-up and working).
The docs say do…

rsb
- 1,020
- 1
- 10
- 25
0
votes
1 answer
`ValueError: need more than 1 value to unpack` in Python OAuthLib?
I'm using OAuthLib to let visitors log into my website with LinkedIn. I now want to post a share (update) to their profile (as described here), which I try to do using the following code:
xmlStr = 'This is a…

kramer65
- 50,427
- 120
- 308
- 488
0
votes
1 answer
Resource Owner Password Credentials Grant - Public Client
I am trying to implement Oauth2 for a website using Python oauthlib. I have decided that I would like to use the grant type 'ResourceOwnerPasswordCredentialsGrant', this is because the website and the API are my own and will not be open to third…

marcbest
- 1,600
- 1
- 10
- 15
0
votes
1 answer
Authentication and authorization on APIGEE using Python
I am trying to find a way to authenticate and authorize a client to access APIGEE. I can't seem to get it to function. I am using Python Requests-OAuthlib. Here is my code:
from requests_oauthlib import OAuth2Session
client_id = r'my_client_id'
…

MoreScratch
- 2,933
- 6
- 34
- 65
-1
votes
1 answer
can't get facebook profile pic from flask-OAuth package
I am using this code for logging in to my app. It works fine, but when I try to get the url for profile pic
pic = facebook.get("/me/picture?fields=url")
I get None in response.
TypeError: must be string or buffer, not None
If I try sending this…

Anum Sheraz
- 2,383
- 1
- 29
- 54