-
Notifications
You must be signed in to change notification settings - Fork 4.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
feat(jwt) add endpoint to list all JWTs #3003
Conversation
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.
Awesome, thank you! I think a better naming of the path parameter is the only missing piece of the puzzle. Requesting this only change and we should be good to go here!
BTW, we are very eager to release this as part of our upcoming 0.11.2 release! Thanks again
kong/plugins/jwt/api.lua
Outdated
crud.paginated_set(self, dao_factory.jwt_secrets) | ||
end | ||
}, | ||
["/jwts/:credential_key_or_id/consumer"] = { |
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.
Would jwt_key_or_id
be a better name here? The JWT and it being a credential from the point of view of the Kong data model might not be obvious enough at first sight.
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.
Makes sense, will push it right away!
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.
@thibaultcha Line 23 in the same file. Should I change those to keep it consistent?
* `/jwts/` to paginate through all JWT credentials * `/jwts/:credential_key_or_id/consumer` to retrieve the Consumer associated with a credential
Merged, thank you for your contribution! |
Two new endpoints have been added to the JWT plugin: * `/jwts/` to paginate through all JWT credentials * `/jwts/:jwt_key_or_id/consumer` to retrieve the Consumer associated with a JWT See Kong/kong#3003
Two new endpoints have been added to the JWT plugin: * `/jwts/` to paginate through all JWT credentials * `/jwts/:jwt_key_or_id/consumer` to retrieve the Consumer associated with a JWT See: Kong/kong#3003 From: #556 Signed-off-by: Thibault Charbonnier <thibaultcha@me.com>
Two new endpoints have been added to the JWT plugin: * `/jwts/` to paginate through all JWT credentials * `/jwts/:jwt_key_or_id/consumer` to retrieve the Consumer associated with a JWT See: Kong/kong#3003 From: #556 Signed-off-by: Thibault Charbonnier <thibaultcha@me.com>
/jwts/
to paginate through all jwt credentials/jwts/:jwt_key_or_id/consumer
to retrieve the Consumerassociated with a credential
Similar to #2998 #2955