vincbeck commented on issue #51362: URL: https://github.com/apache/airflow/issues/51362#issuecomment-2950258585
Thanks for the feedbacks, I'll try to provide more details about the different APIs and their authentication. As a final step, I agree we should update the docs, it seems it is confusing and not easy to grasp. ## Airflow API VS FAB auth manager API VS FAB auth manager token API Airflow API is the [Airflow public API](https://airflow.apache.org/docs/apache-airflow/stable/stable-rest-api-ref.html) used to interact with Airflow. For example, you can list DAGs, delete connections, update variables, trigger a DAG, etc ... Its endpoint is `/api/v2` [FAB auth manager API](https://airflow.apache.org/docs/apache-airflow-providers-fab/2.0.1/api-ref/fab-public-api-ref.html) is used to manage users, roles and permissions. Its endpoint is `/auth/fab/v1/`. [FAB auth manager token API](https://airflow.apache.org/docs/apache-airflow-providers-fab/stable/api-ref/fab-token-api-ref.html) is used to generate a JWT token using FAB auth manager. Its endpoint is `/auth/token`. ## Airflow API authentication In order to authenticate with Airflow API, you need to use JWT token. More information in [documentation](https://airflow.apache.org/docs/apache-airflow/stable/security/api.html). In your case, since you are using FAB auth manager, you need to generate a JWT token using FAB auth manager. This is explained in the documentation [here](https://airflow.apache.org/docs/apache-airflow-providers-fab/stable/auth-manager/token.html). Once you generate a JWT token, you can use it to authenticate with Airflow API. ## FAB auth manager authentication In order to authenticate with FAB auth manager API, you need to use auth backends. More information in [documentation](https://airflow.apache.org/docs/apache-airflow-providers-fab/stable/auth-manager/api-authentication.html). I hope that helps and please let me know if you're still stuck. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
