ashb commented on code in PR #47885:
URL: https://github.com/apache/airflow/pull/47885#discussion_r2001235704
##########
airflow/executors/base_executor.py:
##########
@@ -128,8 +130,32 @@ class BaseExecutor(LoggingMixin):
name: None | ExecutorName = None
callback_sink: BaseCallbackSink | None = None
+ @cached_property
+ def jwt_generator(self) -> JWTGenerator:
+ from airflow.api_fastapi.auth.tokens import (
+ JWTGenerator,
+ get_signing_args,
+ )
+ from airflow.configuration import conf
+
+ generator = JWTGenerator(
+ valid_for=conf.getint("jwt_expiration_time",
"jwt_expiration_time"),
Review Comment:
```suggestion
valid_for=conf.getint("execution_api", "jwt_expiration_time"),
```
--
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]