mirror of
https://github.com/j93es/oauth-backend.git
synced 2026-06-04 07:01:51 +09:00
nonceCheck 오류 수정
This commit is contained in:
commit
ac32d5d604
5 changed files with 253 additions and 4 deletions
|
|
@ -73,7 +73,7 @@ class NonceChecker:
|
|||
except Exception as e:
|
||||
return {}
|
||||
|
||||
<<<<<<< HEAD
|
||||
|
||||
|
||||
def check_nonce_in_id_token(self, flow) -> bool:
|
||||
if not flow.response or not self.is_oidc_flow(flow):
|
||||
|
|
@ -91,10 +91,8 @@ class NonceChecker:
|
|||
return True
|
||||
|
||||
id_token = self.extract_id_token(flow)
|
||||
=======
|
||||
# TODO id_token을 파싱하는 부분이 누락되어있습니다.
|
||||
def check_nonce_in_id_token(self, flow, id_token: str) -> bool:
|
||||
>>>>>>> 99fc280517f09bb93d586c26f01239f32c04c56c
|
||||
decoded = self.decode_id_token(id_token)
|
||||
nonce = decoded.get("nonce")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue