We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aea2676 commit 014e63bCopy full SHA for 014e63b
app/core/security.py
@@ -61,6 +61,8 @@ def get_issuer_from_token(token: str) -> Optional[str]:
61
Returns:
62
str | None: The issuer (iss) claim from the token if present, otherwise None.
63
"""
64
+
65
+ logger.info("get_issuer_from_token", token=token)
66
try:
67
unverified_payload = decode(token, options={"verify_signature": False})
68
return unverified_payload.get("iss")
@@ -112,6 +114,10 @@ async def validate_jwt_token(
112
114
Raises:
113
115
HTTPException: If the token is invalid, untrusted, or if any other error occurs during validation.
116
117
+ logger.info(
118
+ "validate_jwt_token",
119
+ credentials=credentials,
120
+ )
121
if (
122
credentials is None
123
or not credentials.scheme == "Bearer"
0 commit comments