Replies: 6 comments 9 replies
-
Thanks for opening your first issue here! Be sure to follow the issue template! |
Beta Was this translation helpful? Give feedback.
-
You need to set the configuration for basic authentication properly. See https://airflow.apache.org/docs/apache-airflow/2.1.0/security/api.html, let me know if it worked for you, if not I will reopen the issue |
Beta Was this translation helpful? Give feedback.
-
I have set the configuration to airflow.api.auth.backend.basic_auth. You can check in the screenshot below, But it is still not working. |
Beta Was this translation helpful? Give feedback.
-
@ephraimbuddy It is still not working for me, kindly assist. |
Beta Was this translation helpful? Give feedback.
-
I am afraid it does not work this way - if you have some findings and want to discuss it and share with others your errors - feel free to open discussion and discuss it. Unless you can point out to the exact issue of airlfow - you can just hope on someone who has an experience with setting to help you - but this is not a "bug" of airflow and people here help in their free time/when they have enough knowledge and experience (maybe - there is no guarantee). I think you have some configuration problem - because the authorization works for basically many people (including our tests) - but unless you show logs and set that there is an airflow issue, this is at most a discussion. BTW. I think you might have webserver misconfigured. The fact that your CLI works does not mean that the webserver is configured the same way - make sure your configuration is the same everywhere and that your websever properly reads it. Also you should look at the log files to try to understand what happens. |
Beta Was this translation helpful? Give feedback.
-
I'm facing the same issue. I have the config in place. I'm using 2.2.5 Version |
Beta Was this translation helpful? Give feedback.
-
Apache Airflow version
2.1.0
What happened
Getting the following error while trying out the Airflow API:
{
"detail": null,
"status": 401,
"title": "Unauthorized",
"type": "https://airflow.apache.org/docs/apache-airflow/2.1.0/stable-rest-api-ref.html#section/Errors/Unauthenticated"
}
What you think should happen instead
The API should work properly as I am passing the username and password as required for basic authentication.
Even with the swagger ui I am getting the same error.
How to reproduce
I am using the local installation of Apache Airflow (https://airflow.apache.org/docs/apache-airflow/stable/start/local.html)
Operating System
Linux
Versions of Apache Airflow Providers
No response
Deployment
Virtualenv installation
Deployment details
No response
Anything else
No response
Are you willing to submit PR?
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions