mirror of
https://github.com/j93es/oauth-backend.git
synced 2026-06-04 06:51:51 +09:00
nonceCheck 수정
This commit is contained in:
parent
2bb887939a
commit
78a377414d
2 changed files with 18 additions and 3 deletions
|
|
@ -73,6 +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):
|
||||
|
|
@ -90,6 +91,10 @@ 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