mirror of
https://github.com/j93es/oauth-backend.git
synced 2026-06-04 05:51:51 +09:00
[Add] TODO
This commit is contained in:
parent
aa8bf95a5c
commit
0be13ec5f2
2 changed files with 4 additions and 2 deletions
|
|
@ -57,7 +57,9 @@ class NonceAddon:
|
|||
|
||||
async def response(self, flow: http.HTTPFlow):
|
||||
try:
|
||||
await self.checker.check_nonce_in_id_token(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
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue