airflow.providers.fab.www.auth¶
Attributes¶
Functions¶
Check permissions on views. |
|
|
|
|
|
|
|
|
|
|
Check current user's permissions against required permissions for assets. |
|
|
|
|
|
Check current user's permissions to access the website. |
Module Contents¶
- airflow.providers.fab.www.auth.has_access_with_pk(f)[source]¶
Check permissions on views.
The implementation is very similar from https://github.com/dpgaspar/Flask-AppBuilder/blob/c6fecdc551629e15467fde5d06b4437379d90592/flask_appbuilder/security/decorators.py#L134
The difference is that this decorator will pass the resource ID to check permissions. It allows fined-grained access control using resource IDs.