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

Method to parse untrusted footer? #46

Open
Imberflur opened this issue Aug 9, 2024 · 0 comments
Open

Method to parse untrusted footer? #46

Imberflur opened this issue Aug 9, 2024 · 0 comments

Comments

@Imberflur
Copy link

Is your feature request related to a problem? Please describe.

The rusty_paseto::core::Footer docs and the PASETO spec note that the footer can be useful for key rotation. This requires reading it before decrypting/verifying the token. However, I can't seem to find any method for parsing out the footer from a token? In fact, AFAICT it seems like the token parser requires the user to know what the footer is if one is present?

Describe the solution you'd like

A new method for parsing an untrusted footer.

Describe alternatives you've considered

  • Manually implementing this parsing outside of rusty_paseto.
  • Passing information for key rotation separate from the token.
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

No branches or pull requests

1 participant