Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Airflow with Google Autentication

Currently, I am trying to integrate the airflow with google authentication.

I am able to open the login page, but every time I try to login, I always get this error: "You don't seem to have access. Please contact your administrator."

I have created user in airflow, the username is same with my email that will be authenticated.

Do I miss something? Any other configuration needed?

For configuration settings, I followed everything stated in this link: https://airflow.apache.org/security.html#google-authentication

Thanks, Maria

like image 208
Maria Avatar asked Jan 17 '18 09:01

Maria


People also ask

Is Airflow secure?

Securing ConnectionsAirflow uses Fernet to encrypt passwords in the connection configuration. It guarantees that a password encrypted using it cannot be manipulated or read without the key.

Is Airflow 2 backwards compatible?

All Airflow 2.0 operators are backwards compatible with Airflow 1.10 using the backport provider packages.

What is the default password for Airflow?

default credentials -- user: admin - password: admin. How to create airflow users?


1 Answers

I solved this issue by removing quotes from the value of domain in airflow.cfg

So I changed my config from:

[google]
client_id = google_client_id
client_secret = google_client_secret
oauth_callback_route = /oauth2callback
domain = "example1.com,example2.com"

to:

[google]
client_id = google_client_id
client_secret = google_client_secret
oauth_callback_route = /oauth2callback
domain = example1.com,example2.com

The documentation is misleading

like image 118
jack boehrer Avatar answered Nov 02 '22 02:11

jack boehrer