Skip to content

Commit

Permalink
remove already disabled code section for nonce check
Browse files Browse the repository at this point in the history
  • Loading branch information
noxan authored Oct 11, 2023
1 parent 789c35a commit 98c78a7
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions social_core/backends/linkedin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 98c78a7

Please sign in to comment.