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

Token object for verifying and signing tokens #621

Merged
merged 3 commits into from
Oct 5, 2024

Conversation

anakinj
Copy link
Member

@anakinj anakinj commented Sep 28, 2024

Description

Introduces a ::JWT::Token object to represent a token. Can be used for signing or verifying the content.

Somewhat addresses #124 and #270 by allowing a token instance be instantiated using a jwt token string.
Latter part of #566 is addressed by dropping the verify_* parameters and allowing explicit claim validation based on the name of the claim (plus a few custom ones).

A separate journey is to support the different type of key finders when verifying/signing the token.

Checklist

Before the PR can be merged be sure the following are checked:

  • There are tests for the fix or feature added/changed
  • A description of the changes and a reference to the PR has been added to CHANGELOG.md. More details in the CONTRIBUTING.md

@anakinj anakinj marked this pull request as draft September 28, 2024 21:36
@anakinj anakinj force-pushed the wrap-token-in-an-object branch 3 times, most recently from 554a643 to 33cb206 Compare September 29, 2024 14:08
@anakinj anakinj changed the title Wrap token in object Token object for verifying and sining tokens Sep 29, 2024
@anakinj anakinj marked this pull request as ready for review September 29, 2024 19:30
@anakinj anakinj changed the title Token object for verifying and sining tokens Token object for verifying and signing tokens Sep 29, 2024
@anakinj anakinj marked this pull request as draft October 2, 2024 16:50
@anakinj anakinj marked this pull request as ready for review October 4, 2024 20:24
@anakinj anakinj force-pushed the wrap-token-in-an-object branch 2 times, most recently from 792fed9 to 586fa79 Compare October 5, 2024 05:54
@anakinj anakinj merged commit 7205651 into jwt:main Oct 5, 2024
34 checks passed
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.

1 participant