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
Add RSASSA-PSS support #53
Conversation
and update BUILD to run those
since we don't want additional code in the main library if it's not required there
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here with What to do if you already signed the CLAIndividual signers
Corporate signers
ℹ️ Googlers: Go here for more info. |
@googlebot I signed it! |
CLAs look good, thanks! ℹ️ Googlers: Go here for more info. |
Thanks you for your contribution. |
Used jwt.io, where I can quickly modify the header of the token
I'm a little confused about variable naming on the google style guide, do let me know if there's anything I should change! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, just a small nit change.
to avoid the static initialization order problem
src/jwt.cc
Outdated
namespace { | ||
|
||
static const absl::flat_hash_set<std::string> kImplementedAlgs = { | ||
bool hasImplementedAlg(std::string alg) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please use string_view
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in ad3a68b, thanks!
@@ -23,6 +24,19 @@ | |||
namespace google { | |||
namespace jwt_verify { | |||
|
|||
bool isImplemented(absl::string_view alg) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add annoymous namespace for this function.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added in 0eac53f!
I'd like to propose using the direct initializer syntax (without new). Specifically for this implementation, the handle to I wrote a small program to illustrate this here and here's the output:
The output shows that when |
OK, thanks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you very much for your contribution.
Thanks! I suppose we can close #49 ? |
Would appreciate any feedback on this work in progress! I'll be adding more test cases