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

reduce duplication and remove dependency to base64 #311

Merged
merged 3 commits into from
May 27, 2024

Conversation

deepu105
Copy link
Contributor

@deepu105 deepu105 commented Jan 13, 2024

Summary

I took some inspiration from this project for https://github.com/jwt-rs/jwt-ui, I made some improvements. So contributing that back if there is interest.

  • Support JWKS secret for all supported algorithms
  • Reduce duplication
  • Remove unwanted base64 dependency
  • Move utils to seperate file

Preflight checklist

  • Code formatted rustfmt ($ cargo fmt)
  • Code linter check with clippy ($ cargo clippy)
  • Relevant tests added
  • Any new documentation added

#[clap(value_parser)]
pub algorithm: SupportedAlgorithms,
pub algorithm: Option<SupportedAlgorithms>,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure what the purpose of this change is. Can you elaborate on why this is needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The algorithm used for the JWT can be derived from the JWT header so making this optional would be better UX IMO

@mike-engel
Copy link
Owner

@deepu105 sorry for the silence on this. Can you rebase/update your branch with main?

@deepu105
Copy link
Contributor Author

done

@mike-engel mike-engel merged commit 207ecdd into mike-engel:main May 27, 2024
5 checks passed
@deepu105 deepu105 deleted the improvements branch May 27, 2024 12:15
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.

None yet

2 participants