Guillermo Rodríguez Cano created AIRFLOW-2321:
-------------------------------------------------

             Summary: RBAC support from new UI's failing on OAuth 
authentication method
                 Key: AIRFLOW-2321
                 URL: https://issues.apache.org/jira/browse/AIRFLOW-2321
             Project: Apache Airflow
          Issue Type: Bug
          Components: authentication
            Reporter: Guillermo Rodríguez Cano


I tried configuring the RBAC support for the new webserver UI as provided 
thanks to this [PR|https://github.com/apache/incubator-airflow/pull/3015] 
(solving AIRFLOW-1433 and AIRFLOW-85 issues) but I have encountered issues with 
OAuth as authentication method with Google as provider.

I have no issues configuring the authentication details as pointed in the 
UPDATING document, but when I test a fresh installation I manage to get to the 
Google authentication webpage and on returning to Airflow's site I get the 
message: 'Invalid login. Please try again.' which I have traced it down to 
coming from 
[here|https://github.com/dpgaspar/Flask-AppBuilder/blob/master/flask_appbuilder/security/views.py#L549].
And as pointed it seems the user variable is None.

I have tried to login using the standard DB authentication method without no 
problems. The same issue happens even when I tried registering a new user, or 
with that user registered via the DB authentication and then switching to OAUTH 
authentication method.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to