You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/08/14 21:03:59 UTC

[GitHub] [airflow] kaxil commented on a change in pull request #10312: Add guide about custom API authentication

kaxil commented on a change in pull request #10312:
URL: https://github.com/apache/airflow/pull/10312#discussion_r470864155



##########
File path: docs/security.rst
##########
@@ -160,6 +160,24 @@ look like the following.
           -H 'Cache-Control: no-cache' \
           -H "Authorization: Bearer ${ID_TOKEN}"
 
+Roll your own API authentication
+''''''''''''''''''''''''''''''''
+
+Each auth backend is defined as a new Python module. It must have 2 defined methods:
+
+* ``init_app(app: Flask)`` - function invoked when creating a flash application, which allows you to add a new view.

Review comment:
       +1




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org