Skip to content

Commit 014e63b

Browse files
authored
tmp: add logging to debug endpoint call (#898)
1 parent aea2676 commit 014e63b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

app/core/security.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ def get_issuer_from_token(token: str) -> Optional[str]:
6161
Returns:
6262
str | None: The issuer (iss) claim from the token if present, otherwise None.
6363
"""
64+
65+
logger.info("get_issuer_from_token", token=token)
6466
try:
6567
unverified_payload = decode(token, options={"verify_signature": False})
6668
return unverified_payload.get("iss")
@@ -112,6 +114,10 @@ async def validate_jwt_token(
112114
Raises:
113115
HTTPException: If the token is invalid, untrusted, or if any other error occurs during validation.
114116
"""
117+
logger.info(
118+
"validate_jwt_token",
119+
credentials=credentials,
120+
)
115121
if (
116122
credentials is None
117123
or not credentials.scheme == "Bearer"

0 commit comments

Comments
 (0)