vincbeck commented on code in PR #71444:
URL: https://github.com/apache/airflow/pull/71444#discussion_r3766735009
##########
airflow-core/src/airflow/api_fastapi/auth/managers/base_auth_manager.py:
##########
@@ -161,15 +164,45 @@ async def get_user_from_token(self, token: str) ->
BaseUser:
log.error("JWT token is not valid: %s", e)
raise e
- if (jti := payload.get("jti")) and RevokedToken.is_revoked(jti):
- raise InvalidTokenError("Token has been revoked")
+ if jti := payload.get("jti"):
+ if self._is_token_revoked(jti):
Review Comment:
```suggestion
if jti := payload.get("jti") and self._is_token_revoked(jti):
```
--
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]