-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
auth: Support all JWT algorithms #9883
Conversation
Codecov Report
@@ Coverage Diff @@
## master #9883 +/- ##
==========================================
+ Coverage 68.96% 69.25% +0.29%
==========================================
Files 385 386 +1
Lines 35703 35731 +28
==========================================
+ Hits 24621 24744 +123
+ Misses 9263 9190 -73
+ Partials 1819 1797 -22
Continue to review full report at Codecov.
|
ErrInvalidAuthMethod = errors.New("auth: invalid auth signature method") | ||
ErrMissingKey = errors.New("auth: missing key data") | ||
ErrKeyMismatch = errors.New("auth: public and private keys don't match") | ||
ErrVerifyOnly = errors.New("auth: token signing attempted with verify-only key") |
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.
I don't see ErrVerifyOnly
being used anywhere?
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.
Good catch, 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.
Updated, and added a test case to ensure it's returned.
This change adds support to etcd for all of the JWT algorithms included in the underlying JWT library.
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.
lgtm /cc @mitake
lgtm, thanks! @joelegasse |
This change adds support to etcd for all of the JWT algorithms included in the underlying JWT library.
Fixes #9696