o-nikolas commented on code in PR #42390:
URL: https://github.com/apache/airflow/pull/42390#discussion_r1771616253
##########
docs/apache-airflow/core-concepts/auth-manager/index.rst:
##########
@@ -37,6 +37,14 @@ If you want to check which auth manager is currently set,
you can use the
$ airflow config get-value core auth_manager
airflow.providers.fab.auth_manager.fab_auth_manager.FabAuthManager
+Available auth managers to use
+------------------------------
+
+Here is the list of auth managers available today you can use in your Airflow
environment.
Review Comment:
```suggestion
Here is the list of auth managers available today that you can use in your
Airflow environment.
```
##########
docs/apache-airflow/core-concepts/auth-manager/simple.rst:
##########
@@ -0,0 +1,81 @@
+ .. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ .. http://www.apache.org/licenses/LICENSE-2.0
+
+ .. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+Simple auth manager
+===================
+
+.. note::
+ Before reading this, you should be familiar with the concept of auth
manager.
+ See :doc:`apache-airflow:core-concepts/auth-manager/index`.
+
+.. warning::
+ The simple auth manager is intended to be used for development and testing
purposes. It should not be used in production environment.
Review Comment:
```suggestion
The simple auth manager is intended to be used for development and testing
purposes. It should not be used in a production environment.
```
##########
docs/apache-airflow/core-concepts/auth-manager/simple.rst:
##########
@@ -0,0 +1,81 @@
+ .. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ .. http://www.apache.org/licenses/LICENSE-2.0
+
+ .. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+Simple auth manager
+===================
+
+.. note::
+ Before reading this, you should be familiar with the concept of auth
manager.
+ See :doc:`apache-airflow:core-concepts/auth-manager/index`.
+
+.. warning::
+ The simple auth manager is intended to be used for development and testing
purposes. It should not be used in production environment.
+
+The simple auth manager is the auth manager that comes by default in Airflow
3. As its name suggests,
+the logic and implementation of the simple auth manager is **simple**.
+
+Manage users
+------------
+
+Users are managed through the `webserver config file
<https://airflow.apache.org/docs/apache-airflow/stable/configurations-ref.html#config-file>`__.
+In this file, the list of users are defined in the constant
``SIMPLE_AUTH_MANAGER_USERS``. Example:
+
+.. code-block:: python
+
+ SIMPLE_AUTH_MANAGER_USERS = [
+ {
+ "username": "admin",
+ "role": "admin",
+ }
+ ]
+
+Each user needs two pieces of information:
+
+* **username**. The user's username
+* **role**. The role associated to the user. For more information about these
roles, :ref:`see next section <roles-permissions>`.
+
+The password is auto-generated for each users and printed out in the webserver
logs.
Review Comment:
```suggestion
The password is auto-generated for each user and printed out in the
webserver logs.
```
--
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]