Skip to content

Commit 3d37df9

Browse files
authored
Merge pull request #48 from cleanenergyexchange/fix/sleep
fix: ordering of logic on retry of load config
2 parents 1ec3a3d + d1ba299 commit 3d37df9

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "fastapi-zitadel-auth"
3-
version = "0.2.4" # change in src/fastapi_zitadel_auth/__init__.py as well
3+
version = "0.2.5" # change in src/fastapi_zitadel_auth/__init__.py as well
44
description = "Zitadel authentication for FastAPI"
55
readme = "README.md"
66
authors = [

src/fastapi_zitadel_auth/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44

55
from fastapi_zitadel_auth.auth import ZitadelAuth
66

7-
__version__ = "0.2.4" # remember to update also in pyproject.toml
7+
__version__ = "0.2.5" # remember to update also in pyproject.toml
88

99
__all__ = ["ZitadelAuth", "__version__"]

src/fastapi_zitadel_auth/openid_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ async def get_key(self, kid: str) -> RSAPublicKey:
6464
"""Get a signing key by its ID, refreshing JWKS once if necessary."""
6565
if kid not in self.signing_keys:
6666
log.debug("Key '%s' not found, refreshing JWKS", kid)
67+
await self._sleep()
6768
self.reset_cache()
6869
await self.load_config()
69-
await self._sleep()
7070

7171
if kid not in self.signing_keys:
7272
log.error(f"Unable to verify token, no signing keys found for key with ID: '{kid}'")

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)