uranusjr commented on code in PR #32838:
URL: https://github.com/apache/airflow/pull/32838#discussion_r1275441841


##########
airflow/auth/managers/base_auth_manager.py:
##########
@@ -42,6 +43,16 @@ def get_user_name(self) -> str:
         """Return the username associated to the user in session."""
         ...
 
+    @abstractmethod
+    def get_user(self) -> BaseUser:
+        """Return the user associated to the user in session."""
+        ...
+
+    @abstractmethod
+    def get_user_id(self) -> str:
+        """Return the user ID associated to the user in session."""
+        ...

Review Comment:
   I think the ID is an int? At least that’s the case for Flask’s user model.



##########
airflow/auth/managers/base_auth_manager.py:
##########
@@ -42,6 +43,16 @@ def get_user_name(self) -> str:
         """Return the username associated to the user in session."""
         ...
 
+    @abstractmethod
+    def get_user(self) -> BaseUser:
+        """Return the user associated to the user in session."""
+        ...
+
+    @abstractmethod
+    def get_user_id(self) -> str:
+        """Return the user ID associated to the user in session."""
+        ...

Review Comment:
   I think the ID is an int? At least that’s the case for Flask’s user model.



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

Reply via email to