From 98c78a73f1aca1cea9c35f556de5875267b3e778 Mon Sep 17 00:00:00 2001 From: Richard Stromer Date: Wed, 11 Oct 2023 16:48:23 +0200 Subject: [PATCH] remove already disabled code section for nonce check --- social_core/backends/linkedin.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/social_core/backends/linkedin.py b/social_core/backends/linkedin.py index 815cf6e2..c85e1439 100644 --- a/social_core/backends/linkedin.py +++ b/social_core/backends/linkedin.py @@ -42,15 +42,6 @@ def validate_claims(self, id_token): # Skip the nonce validation for linkedin as it does not provide any nonce. # https://stackoverflow.com/questions/76889585/issues-with-sign-in-with-linkedin-using-openid-connect - # nonce = id_token.get("nonce") - # if not nonce: - # raise AuthTokenError(self, "Incorrect id_token: nonce") - - # nonce_obj = self.get_nonce(nonce) - # if nonce_obj: - # self.remove_nonce(nonce_obj.id) - # else: - # raise AuthTokenError(self, "Incorrect id_token: nonce") class LinkedinOAuth2(BaseOAuth2):