Merge pull request #10 from j93es/j93es3

[Add] TODO
This commit is contained in:
암냥 2025-06-10 08:12:11 +09:00 committed by GitHub
commit 30e2730cb1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View file

@ -57,7 +57,9 @@ class NonceAddon:
async def response(self, flow: http.HTTPFlow):
try:
await self.checker.response(flow)
pass
# TODO id_token을 파싱하는 부분이 누락되어있습니다.
# await self.checker.check_nonce_in_id_token(flow)
except Exception as e:
print(f"[ERROR] NonceAddon failed: {e}")
pass

View file

@ -68,7 +68,7 @@ class NonceChecker:
except Exception as e:
return {}
# TODO id_token을 파싱하는 부분이 누락되어있습니다.
def check_nonce_in_id_token(self, flow, id_token: str) -> bool:
decoded = self.decode_id_token(id_token)
nonce = decoded.get("nonce")