-
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(hmac-auth) add 2 endpoints to interact with hmac-auth credentials #3009
Conversation
Thanks again! Marking this one for review as well :) |
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.
Nothing to add here, this complies to the style of this legacy part of the codebase and I see you added the test cases from my previous merge on key-auths
.
Thank you for your hard work on this feature for all those plugins!
kong/plugins/hmac-auth/api.lua
Outdated
crud.paginated_set(self, dao_factory.hmacauth_credentials) | ||
end | ||
}, | ||
["/hmac-auths/:credential_username_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.
Here, wouldn't hmac_username
be a better name as well?
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.
Just to make sure /hmac-auths/:hmac_username_or_id/consumer
, right?
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 that would be slightly better yes. "credential" is ok for key-auth or basic-auth I would say, but here I think we need users to grasp better where is this "username" attribute we are referring to. It would thus be the username of the /hmac-auth
entities
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 Should I update Line 23 in this file as well to maintain consistency? Also, I'll update tests.
slightly better path name could be used
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.
We could use a slightly better past name - and that should be all!
@thibaultcha I've updated the naming in the file overall. |
* `/hmac-auths/` to paginate through all hmac-auth credentials * `/hmac-auths/:credential_key_or_id/consumer` to retrieve the Consumer associated with a credential
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.
This is great as is, thanks!
Thank you! |
@hbagdi yay! 🎉 |
Two new endpoints have been added to the hmac-auth plugin: * `/hmac-auths/` to paginate through all hmac-auth credentials * `/hmac-auths/:credential_key_or_id/consumer` to retrieve the Consumer associated with a credential See Kong/kong#3009
Two new endpoints have been added to the hmac-auth plugin: * `/hmac-auths/` to paginate through all hmac-auth credentials * `/hmac-auths/:credential_key_or_id/consumer` to retrieve the Consumer associated with a credential See Kong/kong#3009
Two new endpoints have been added to the hmac-auth plugin: * `/hmac-auths/` to paginate through all hmac-auth credentials * `/hmac-auths/:credential_key_or_id/consumer` to retrieve the Consumer associated with a credential See: Kong/kong#3009 From: 555 Signed-off-by: Thibault Charbonnier <thibaultcha@me.com>
Two new endpoints have been added to the hmac-auth plugin: * `/hmac-auths/` to paginate through all hmac-auth credentials * `/hmac-auths/:credential_key_or_id/consumer` to retrieve the Consumer associated with a credential See: Kong/kong#3009 From: #555 Signed-off-by: Thibault Charbonnier <thibaultcha@me.com>
Two new endpoints have been added to the hmac-auth plugin: * `/hmac-auths/` to paginate through all hmac-auth credentials * `/hmac-auths/:credential_key_or_id/consumer` to retrieve the Consumer associated with a credential See: Kong/kong#3009 From: #555 Signed-off-by: Thibault Charbonnier <thibaultcha@me.com>
Two new endpoints have been added to the hmac-auth plugin: * `/hmac-auths/` to paginate through all hmac-auth credentials * `/hmac-auths/:credential_key_or_id/consumer` to retrieve the Consumer associated with a credential See: Kong/kong#3009 From: #555 Signed-off-by: Thibault Charbonnier <thibaultcha@me.com>
/hmac-auths/
to paginate through all hmac-auth credentials/hmac-auths/:credential_key_or_id/consumer
to retrieve the Consumerassociated with a credential