-
Notifications
You must be signed in to change notification settings - Fork 874
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 RawTokenKeyProvider #2420
Add RawTokenKeyProvider #2420
Conversation
@@ -39,4 +41,11 @@ type TokenKeyProvider interface { | |||
Close() | |||
} | |||
|
|||
// RawTokenKeyProvider is a TokenKeyProvider that provides keys for validating JWT tokens |
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.
Need to add comments that this is an optional alternative version of token key provider. However, if provider implements this interface, it will take precedent and shadow the implementation of TokenKeyProvider and be used to validate JWT token.
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.
If RawTokenKeyProvider is a TokenKeyProvider
, shall we embed TokenKeyProvider
inside RawTokenKeyProvider
interface and only specify additional methods?
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 think it's fine as it is and there's no need to add TokenKeyProvider
methods to RawTokenKeyProvider
.
buildkite fail because you need to run |
Add an empty line to make goimports happy.
Thank you, @wenerme, for your contribution! |
What changed?
close #2382
Why?
How did you test it?
Potential risks
Is hotfix candidate?
No