You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The client should not assume a refresh token is returned in an OpenID token refresh request as there several token management strategies like "sliding", "rolling" and "rotation".
Traceback:
in __aenter__
self._client: client.ApiClient = await config.new_client_from_config(
File ".../.venv/lib/python3.8/site-packages/kubernetes_asyncio/config/kube_config.py", line 639, in new_client_from_config
await load_kube_config(config_file=config_file, context=context,
File ".../.venv/lib/python3.8/site-packages/kubernetes_asyncio/config/kube_config.py", line 575, in load_kube_config
await loader.load_and_set(client_configuration)
File ".../.venv/lib/python3.8/site-packages/kubernetes_asyncio/config/kube_config.py", line 379, in load_and_set
await self._load_authentication()
File ".../.venv/lib/python3.8/site-packages/kubernetes_asyncio/config/kube_config.py", line 206, in _load_authentication
await self._load_oid_token()
File ".../.venv/lib/python3.8/site-packages/kubernetes_asyncio/config/kube_config.py", line 274, in _load_oid_token
await self._refresh_oidc(provider)
File ".../.venv/lib/python3.8/site-packages/kubernetes_asyncio/config/kube_config.py", line 301, in _refresh_oidc
provider['config'].value['refresh-token'] = resp['refresh_token']
KeyError: 'refresh_token'
This workaround is limited though, since if a token refresh is needed after a request failure and the client has been initialized, then the built-in retry mechanisms that refresh id tokens won't work.
The text was updated successfully, but these errors were encountered:
The client should not assume a refresh token is returned in an OpenID token refresh request as there several token management strategies like "sliding", "rolling" and "rotation".
Traceback:
Current workaround:
This workaround is limited though, since if a token refresh is needed after a request failure and the client has been initialized, then the built-in retry mechanisms that refresh id tokens won't work.
The text was updated successfully, but these errors were encountered: