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
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.
All Airflow 2.0 operators are backwards compatible with Airflow 1.10 using the backport provider packages.
default credentials -- user: admin - password: admin. How to create airflow users?
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With