uranusjr commented on code in PR #32697:
URL: https://github.com/apache/airflow/pull/32697#discussion_r1269926816
##########
airflow/auth/managers/fab/fab_auth_manager.py:
##########
@@ -43,3 +46,16 @@ def get_user_name(self) -> str:
def is_logged_in(self) -> bool:
"""Return whether the user is logged in."""
return current_user and not current_user.is_anonymous
+
+ def get_security_manager_override_class(self) -> type:
+ """Return the security manager override."""
+ return FabAirflowSecurityManagerOverride
+
+ def get_url_login(self, **kwargs) -> str:
+ """Return the login page url."""
+ if not self.security_manager.auth_view:
+ raise AirflowException("`auth_view` not defined in the security
manager.")
+ if "next_url" in kwargs and kwargs["next_url"]:
+ return
url_for(f"{self.security_manager.auth_view.endpoint}.{'login'}",
next=kwargs["next_url"])
Review Comment:
```suggestion
return
url_for(f"{self.security_manager.auth_view.endpoint}.login",
next=kwargs["next_url"])
```
--
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]