Skip to content

Commit 3a6da53

Browse files
committed
test: debug jwt
1 parent 33c9801 commit 3a6da53

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/inference_api.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@
1818

1919
def verify_jwt(credentials: HTTPAuthorizationCredentials = Depends(security)):
2020
token = credentials.credentials
21+
print("token")
22+
print(token)
23+
payload = jwt.decode(token, JWT_SECRET_KEY, algorithms=[JWT_ALGORITHM])
24+
print("payload")
25+
print(payload)
26+
print("service: ", payload.get("service"))
2127
try:
2228
payload = jwt.decode(token, JWT_SECRET_KEY, algorithms=[JWT_ALGORITHM])
2329
if payload.get("service") != "airflow":

0 commit comments

Comments
 (0)