Skip to content

Commit c46d980

Browse files
vincbecknailo2c
authored andcommitted
Update docs to reflect auth manager move to api_fastapi (apache#47575)
1 parent 31b2370 commit c46d980

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

docs/apache-airflow/core-concepts/auth-manager/index.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ All Airflow auth managers implement a common interface so that they are pluggabl
7979
to all abilities and integrations within Airflow. This interface is used across Airflow to perform all user
8080
authentication and user authorization related operation.
8181

82-
The public interface is :class:`~airflow.auth.managers.base_auth_manager.BaseAuthManager`.
82+
The public interface is :class:`~airflow.api_fastapi.auth.managers.base_auth_manager.BaseAuthManager`.
8383
You can look through the code for the most detailed and up to date interface, but some important highlights are
8484
outlined below.
8585

@@ -102,7 +102,7 @@ Authentication related BaseAuthManager methods
102102
Authorization related BaseAuthManager methods
103103
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
104104

105-
Most of authorization methods in :class:`~airflow.auth.managers.base_auth_manager.BaseAuthManager` look the same.
105+
Most of authorization methods in :class:`~airflow.api_fastapi.auth.managers.base_auth_manager.BaseAuthManager` look the same.
106106
Let's go over the different parameters used by most of these methods.
107107

108108
* ``method``: Use HTTP method naming to determine the type of action being done on a specific resource.
@@ -184,7 +184,7 @@ Endpoints defined by ``get_fastapi_app`` are mounted in ``/auth``.
184184
Next Steps
185185
^^^^^^^^^^
186186

187-
Once you have created a new auth manager class implementing the :class:`~airflow.auth.managers.base_auth_manager.BaseAuthManager` interface, you can configure Airflow to use it by setting the ``core.auth_manager`` configuration value to the module path of your auth manager:
187+
Once you have created a new auth manager class implementing the :class:`~airflow.api_fastapi.auth.managers.base_auth_manager.BaseAuthManager` interface, you can configure Airflow to use it by setting the ``core.auth_manager`` configuration value to the module path of your auth manager:
188188

189189
.. code-block:: ini
190190

docs/apache-airflow/empty_plugin/empty_plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
from flask import Blueprint
2323
from flask_appbuilder import BaseView, expose
2424

25-
from airflow.auth.managers.models.resource_details import AccessView
25+
from airflow.api_fastapi.auth.managers.models.resource_details import AccessView
2626
from airflow.plugins_manager import AirflowPlugin
2727
from airflow.providers.fab.www.auth import has_access_view
2828

docs/apache-airflow/public-airflow-interface.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,9 +328,9 @@ Auth managers
328328
-------------
329329

330330
Auth managers are responsible of user authentication and user authorization in Airflow. All auth managers are
331-
derived from :class:`~airflow.auth.managers.base_auth_manager.BaseAuthManager`.
331+
derived from :class:`~airflow.api_fastapi.auth.managers.base_auth_manager.BaseAuthManager`.
332332

333-
The auth manager interface itself (the :class:`~airflow.auth.managers.base_auth_manager.BaseAuthManager` class) is
333+
The auth manager interface itself (the :class:`~airflow.api_fastapi.auth.managers.base_auth_manager.BaseAuthManager` class) is
334334
public, but the different implementations of auth managers are not (i.e. FabAuthManager).
335335

336336
You can read more about auth managers and how to write your own in :doc:`core-concepts/auth-manager/index`.

0 commit comments

Comments
 (0)