Questions tagged [flask-oauthlib]
77 questions
2
votes
1 answer
RuntimeError: Missing "jwks_uri" in metadata for flask and Azure AD authlib
I tried login in via Azure AD in airflow container.
I setting de webserver_config.py
OAUTH_PROVIDERS = [
{
'name':'azure', 'token_key':'access_token', 'icon':'fa-windows',
'remote_app': {
"api_base_url":…

alexis.araya
- 95
- 1
- 10
2
votes
0 answers
Authlib Flask Client - How to validate and refresh the access token
I have been trying to integrate Authlib Flask Client to achieve the OIDC via Google OIDC. I am using Flask SQLAlchemy, and everything is working perfectly fine. The only problem is I am unable to refresh the token when expired.
Questions:
How do I…

Verdan Mahmood
- 66
- 4
2
votes
1 answer
How to resolve InvalidClientError (oauthlib.oauth2)
I am currently trying to integrate a Google Sign-In feature into my local Flask Web Application with OAuthlib. While trying to run the finished implementation of the Flask Google-Login feature as shown here at RealPython, I ran into this…
user12487312
2
votes
2 answers
ImportError: cannot import name 'bytes_type' in flask_oauthlib
i try to build a apps with flask_oauthlib and deploy it to heroku, but i get some error
2019-02-10T03:14:55.112096+00:00 app[web.1]: File "/app/flask_oauthlib/client.py", line 20, in
2019-02-10T03:14:55.112098+00:00 app[web.1]: from…

Ervan
- 81
- 2
- 9
2
votes
1 answer
Using Json Web Tokens with Flask-Oauthlib
For a client project I am developing a web app that is using Flask for the backend.
So I decided to use Flask-oauthlib in a attempt to make supplying refresh tokens, and revoking access tokens simple. However, there is something I am still having a…

TechEmperor95
- 389
- 1
- 4
- 18
2
votes
1 answer
Flask: lost the session in restful server
I am trying to create a simple web application in order to better study how it works. The idea is that the user can login via twitter, and after that can access different functions on the front end. I can make the user authenticate via twitter, but…

F.N.B
- 1,539
- 6
- 23
- 39
2
votes
2 answers
Twitter oauth with flask_oauthlib, Failed to generate request token
I tried to use flask_oauthlib to access my twitter api, but all I get is the error : Failed to generate request token. Here is the code.
from flask_oauthlib.client import OAuth
from flask import Flask, url_for, request, jsonify
app =…

VanesBee
- 616
- 1
- 6
- 18
2
votes
1 answer
Unicode-objects must be encoded before hashing when requesting data using Flask-OAuth
I'm integrating Google's login with a Flask site using Flask-OAuth.
Everything is working fine. I can authorise the login and get a token back etc without any difficulties. But when I use Flask-OAuth's get method to request the logged in user's…

hammygoonan
- 2,125
- 2
- 21
- 36
2
votes
1 answer
How to exchange one-time authorization code for access token with flask_oauthlib?
I'm building an API with the Python Flask framework in which I now receive a "one-time authorization code" from an app which I supposedly can exchange for an access and refresh token with the Gmail API (described here).
I've been using Oauthlib for…

kramer65
- 50,427
- 120
- 308
- 488
2
votes
0 answers
Missing_uri parameter when using facebook oauth
I am using flask-oauth to authenticate my users.
I did a bit of digging and I found out that this is the URL that flask-oauth is…

user17282
- 497
- 5
- 13
1
vote
0 answers
Flask controller for Authlib get token returns "unsupported_grant_type"
I need to migrate old authentication flow which uses Flask-OAuthlib to Authlib. Grant, Client and Token models were already in place, so I had to modify Client using ClientMixin and additional methods. However I'm getting {"error":…

Alexander P
- 234
- 1
- 2
- 14
1
vote
0 answers
Twitter Oauth Callback URI / Redirect URL. Python Flask Oauthlib
I am trying to add twitter login in my app. I'M using python flask and oauthlib.
And I get this error:
authlib.integrations.base_client.errors.OAuthError: fetch_token_denied: Token request failed with code 401, response was…

Kirill Stepankov
- 23
- 5
1
vote
0 answers
Get proper usernames to populate on Superset with Azure SSO instead of ID string
I've finally gotten Azure Single Sign-On (SSO) connected to Apache Superset running via docker-compose, following the Flask docs. Users in my company's Azure group can create and access Superset accounts by logging in with Azure and they are…

Sam Firke
- 21,571
- 9
- 87
- 105
1
vote
1 answer
OAuth Superset integration - custom_token_headers not passed to access_token_url
I am following this link for OAuth integration of superset - https://superset.apache.org/docs/installation/configuring-superset.
As per the configuration:
AUTH_TYPE = AUTH_OAUTH
OAUTH_PROVIDERS = [
{ 'name':'egaSSO',
…

Gaurav
- 68
- 3
1
vote
1 answer
Redirect User to original URL after Google login in Flask
I have implemented flask-dance and authlib Flask client for Google sign-in, one answer was unclear in all implementations were how to redirect a user to original user once they login. For example, a flow I wanted => clicks on /results checks if not…

akshansh
- 21
- 3