-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
get_oauth_user_info seems to parse the wrong field #1638
Comments
Thank you for reporting this, can you provide a sanitised debug log chunk that contains the output from https://github.com/dpgaspar/Flask-AppBuilder/blob/master/flask_appbuilder/security/manager.py#L597 |
Sure, if I have sanitised to much let me know. I have tested locally by exchanging the id_token with the access_token and that seems to work, I can create a pull request if you like. here is the the debug output you asked: airflow-webserver_1 | [2021-05-11 09:53:29,386] {manager.py:597} DEBUG - Azure response received : <--------- access_token decoded value ---------> <--------- id_token decoded value ---------> |
latest 4.3.9 replaced |
Environment
I'm using Airflow 2.0.2 with Flask-Appbuilder version 3.2.3
pip freeze output:
Flask==1.1.2
Flask-AppBuilder==3.2.3
Flask-Babel==1.0.0
Flask-Caching==1.10.1
Flask-JWT-Extended==3.25.1
Flask-Login==0.4.1
Flask-OpenID==1.2.5
Flask-SQLAlchemy==2.5.1
Flask-WTF==0.14.3
The issue:
def get_oauth_user_info in manager.py
section: if provider == "azure"
seems to look in the the "id_token" for a "upn" value.
when debugging I noticed that there is no upn value in the id_token dict but at the same time there is an access_token dict which has the "upn" value.
The text was updated successfully, but these errors were encountered: