airflow.providers.fab.www.views¶
Attributes¶
Classes¶
A simple view that inherits from FAB index view. |
Functions¶
|
Show Traceback for a given error. |
|
Show Not Found on screen for any error in the Webserver. |
|
Given a user-supplied URL, ensure it points to our web server. |
Return how long the API token handed to the browser should live. |
|
|
|
|
Show Method Not Allowed on screen for any error in the Webserver. |
Module Contents¶
- class airflow.providers.fab.www.views.FabIndexView[source]¶
Bases:
flask_appbuilder.IndexViewA simple view that inherits from FAB index view.
The only goal of this view is to redirect the user to the Airflow 3 UI index page if the user is authenticated. It is impossible to redirect the user directly to the Airflow 3 UI index page before redirecting them to this page because FAB itself defines the logic redirection and does not allow external redirect.
- airflow.providers.fab.www.views.not_found(error)[source]¶
Show Not Found on screen for any error in the Webserver.
- airflow.providers.fab.www.views.get_safe_url(url)[source]¶
Given a user-supplied URL, ensure it points to our web server.
- airflow.providers.fab.www.views.get_token_expiration_seconds()[source]¶
Return how long the API token handed to the browser should live.
The UI only comes back to the auth manager once its token expires, so the token expiry — not the session cookie — is what actually forces a re-authentication. Capping it at whatever is left of the session keeps
[fab] session_max_lifetime_minutesan exact deadline instead of one the user overshoots by up to[api_auth] jwt_expiration_time.