New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERROR - Error returning OAuth user info #1814
Comments
I have a similar issue except with google Oauth on airflow 2.2.1. Except my error message is missing_token. i'll try to open a issue for it today |
rollback to authlib==0.15.5 and it fixes it for now |
@sergiofteixeira : I am already using authlib==0.15.5 version, but it still doesn't work |
Downgrading to |
@troyharvey @sergiofteixeira I have the similar issue. Still getting below error Can you please help on this? |
@abhirhel7 We made two changes:
|
Thanks @troyharvey , Have done the changes and re-deployed, Still the same issue. Airflow Version: apache/airflow:2.1.0-python3.8 Over UI Saying Invalid login. Please try again. |
@abhirhel7 Were you able to solve the issue? I'm facing the same problem in Airflow 2.5.0 |
@abhirhel7 @tinder-javiertrejo To solve the error, put a "/" at the end of 'api_base_url' : Because the code concat api_base_url with "userinfo" to make his call. |
I still get this problem. and the webserver_config:
|
It seems like this is a common issue and no way to even debug. In my case I am not seeing any error in web server log. I am using azure auth and getting the same error. |
Same issue here using keycloak to auth. |
I have found and fixed my issues using a custom security class. Try and use self.log.debug() to log debug information.
|
fixed on #2121 |
@halink0803 For google auth to work: |
Hello all, when I tried to fix some problems like this, work solution was delete string with "userinfo_url", and add work url "api_base_url" AUTH_ROLES_MAPPING = {
|
We are trying to use Okta Oauth for Airflow authentication, but we are unbale to login to the airlow applicaion
Environment
Flask-Appbuilder version: 3.2.2
Authlib : 0.15.5
Airflow Version: apache/airflow:2.1.0-python3.8
Describe the expected results
Okta OAuth should be able to authenticate and redirect to the Airflow home page
Describe the actual results:
Error log: "views.py: ERROR - Error returning OAuth user info: Expecting value: line 1 column 1 (char 0)"
On Airlow login page : Invalid login. Please try again.
Steps to reproduce
We have the below code for authentication in webserver_config.py
The text was updated successfully, but these errors were encountered: