aserechenko commented on issue #24674:
URL: https://github.com/apache/airflow/issues/24674#issuecomment-1187389841
Found out it is possible to use inner Airflow security management:
```python
from airflow.api_connexion import security
from airflow.security import permissions
class YourAPIView(BaseApi):
@security.requires_access([(permissions.ACTION_CAN_READ,
permissions.RESOURCE_DAG_CODE)])
@expose('/your_endpoint', methods=['GET'])
def your_endpoint(self):
```
Hope someone will find it useful, as it was in my case.
--
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]