Questions tagged [flask-oauthlib]

77 questions
54
votes
3 answers

Testing flask-oauthlib locally without https

I have implemented an oauth2 server and an oauth2 client using flask-oauthlib. When I am trying to test locally, the client returns an InsecureTransportError and tells me that I should be using https. Is there a way to test the app locally without…
user2483431
  • 783
  • 2
  • 7
  • 11
31
votes
3 answers

"No module named 'urlparse'" but I'm not using urlparse

I'm trying to figure out why I am seeing an error ModuleNotFoundError: No module named 'urlparse' but I never call urlparse in my code. When I try to install urlparse with pip, I am seeing that this module doesn't exist. When I try to install…
mnickey
  • 727
  • 1
  • 6
  • 15
8
votes
1 answer

Google OAuth with Flask-Dance (always redirect to "choose account" google page)

I have an app written with Flask and try to use Flask-Dance (Flask-Dance Docs - Google Example) to enable Google OAuth. I got the following setup: from flask import redirect, url_for, jsonify, Blueprint from flask_dance.contrib.google import…
Max
  • 404
  • 2
  • 17
  • 39
8
votes
5 answers

How to use a refresh_token to get a new access_token (using Flask-OAuthLib)?

I'm building a website + backend with the FLask Framework in which I use Flask-OAuthlib to authenticate with google. After authentication, the backend needs to regularly scan the user his Gmail. So currently users can authenticate my app and I store…
kramer65
  • 50,427
  • 120
  • 308
  • 488
6
votes
2 answers

Flask-OIDC with keycloak - oidc_callback default callback not working

I'm trying to use Flask-oidc in a simple flask application in order to add authentication via keycloak. However, once I log-in with valid credentials it goes back to /oidc_callback which doesn't exist. The flask logs show a lot of attempts of…
magnoz
  • 1,939
  • 5
  • 22
  • 42
6
votes
1 answer

Flask-oauthlib or authlib in production?

I just got flask-oauthlib working in a website I'm building. However, I noticed that the front page of the project has a warning to use authlib instead. If you use flask-oauthlib in production are you planning to migrate to authlib? Is anyone aware…
ukosteopath
  • 443
  • 7
  • 14
4
votes
5 answers

Redirect to previous URL after OAuth login is completed (flask-dance)

I am developing a Flask application that allows the user to login using OAuth (with Github as a provider), and the flask-dance library. For some reason I am not able to redirect, after a successful login, to the page from which I sent the user to…
Fasteno
  • 305
  • 3
  • 12
4
votes
0 answers

Python Flask-OAuth validate a token for a webapi

I went through the Flask OAuth api, and its pretty clear how to do authentication for a web app. The web app gets redirected to the authentication provider login page, where access is granted, and returns back to the web app with a token. However,…
4
votes
2 answers

Flask-Stormpath Token based authentication

I am trying to implement token based authentication for my Flask REST API. I am using Stormpath as my third-party authentication service. I looked into flask-stormpath built on top of flask-login. Looks like it uses password based authentication as…
Vasif
  • 1,393
  • 10
  • 26
4
votes
1 answer

Flask-OAuthlib OAuth2 client Error: "Missing access credentials."

I'm using Flask OauthLib following this tutorial, trying to make a basic OAuth2 client to use with Foursquare.com: https://flask-oauthlib.readthedocs.org/en/latest/client.html#oauth2-client After I grant permission to use the app, I get redirected…
Rock Lee
  • 9,146
  • 10
  • 55
  • 88
3
votes
3 answers

RuntimeError: Missing "jwks_uri" in metadata for flask and Google authlib

Showing the error Not sure why the error is occurring as I have registered the oauth and have even downgraded my authlib version to 0.12.1 and still no fix. The main overarching issue is that I get an internal server error of 500 with the flask app…
3
votes
1 answer

ImportError: cannot import name 'bytes_type' from 'oauthlib.common'

I am updating airflow from 1.10.5 to 1.10.10. I am getting the following error in webserver when using google OAuth Traceback (most recent call last): File "/home/airflow/.local/bin/airflow", line 37, in args.func(args) File…
Ayush Chauhan
  • 441
  • 7
  • 25
3
votes
1 answer

Flask python setup: oauthlib version problems while installing

I am extremely new to flask - just setting it up now for following a tutorial on how to build a web app including logins. Some of the packages I need for the tutorial are requests-oauthlib,flask-oauthlib and oauthlib. I came across this problem…
SCool
  • 3,104
  • 4
  • 21
  • 49
3
votes
2 answers

Update/convert 'flask_oauthlib.client' to 'authlib.flask.client' - Microsoft Graph v2 access without a user

My goal is to implement this: https://github.com/Azure-Samples/active-directory-python-flask-graphapi-web-v2 With the newer Authlib library. https://github.com/lepture/authlib I need an app that authenticates with a certificate (no user login) and…
dev01
  • 31
  • 2
3
votes
0 answers

Flask-login remember does not work

I am developing a small web application. I am using https://pythonhosted.org/Flask-OAuth library for Social Authentication from Google. Also, Flask-Login. I have successfully set up the authorization callback and authorized the user. I am able to…
user6354393
1
2 3 4 5 6