Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validate sub and jti claims for the token #1005

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Divan009
Copy link

@Divan009 Divan009 commented Oct 10, 2024

Closes #959

  • Added validation logic for both the 'sub' (subject) and 'jti' (JWT ID) claims.
  • Introduced _validate_sub and _validate_jti methods for verifying these claims.
  • Updated the decode_complete function to include options for verifying the 'sub' and 'jti' claims.
  • Update the positional arguments in decode and decode_complete function, to accept subject
  • Changelog updated
  • TestCases Added

@Divan009
Copy link
Author

Hi @jpadilla

Apologies for the inconvenience, but I had to create a new PR with the same commits after accidentally deleting my fork, which removed the original PR.

Thanks for your understanding! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement sub and jti check
1 participant