awildturtok commented on issue #56614:
URL: https://github.com/apache/airflow/issues/56614#issuecomment-3637793021
Can confirm, doesn't work on 3.1.4 with
apache-airflow-providers-keycloak==0.3.0
```log
File
"/home/airflow/.local/lib/python3.13/site-packages/starlette/middleware/base.py",
line 184, in __call__
response = await self.dispatch_func(request, call_next)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/home/airflow/.local/lib/python3.13/site-packages/airflow/api_fastapi/auth/middlewares/refresh_token.py",
line 45, in dispatch
new_user = await self._refresh_user(current_token)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/home/airflow/.local/lib/python3.13/site-packages/airflow/api_fastapi/auth/middlewares/refresh_token.py",
line 68, in _refresh_user
return get_auth_manager().refresh_user(user=user)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
File
"/home/airflow/.local/lib/python3.13/site-packages/airflow/providers/keycloak/auth_manager/keycloak_auth_manager.py",
line 121, in refresh_user
tokens = client.refresh_token(user.refresh_token)
File
"/home/airflow/.local/lib/python3.13/site-packages/keycloak/keycloak_openid.py",
line 410, in refresh_token
return raise_error_from_response(data_raw, KeycloakPostError)
File
"/home/airflow/.local/lib/python3.13/site-packages/keycloak/exceptions.py",
line 195, in raise_error_from_response
raise error(
...<3 lines>...
)
keycloak.exceptions.KeycloakPostError: 400:
b'{"error":"invalid_grant","error_description":"Token is not active"}'
```
--
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]