fat-catTW commented on code in PR #76748:
URL: https://github.com/apache/airflow/pull/76748#discussion_r4609262733


##########
providers/fab/src/airflow/providers/fab/auth_manager/fab_auth_manager.py:
##########
@@ -345,6 +348,27 @@ def _fetch_user() -> User:
                     self.session.remove()
                 raise
 
+    async def deserialize_user_async(self, token: dict[str, Any]) -> User:

Review Comment:
   Thanks. 
   I added a compatibility fallback in `FabAuthManager.deserialize_user_async`: 
if a subclass overrides `deserialize_user`, it delegates to that override. 
Otherwise FAB uses the async DB lookup. This keeps existing subclasses working, 
while new I/O-based implementations can override `deserialize_user_async`. 
   Added a JWT-level regression test.



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