-
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(pdk) add consumer, service, route handling #3916
Conversation
0025398
to
1d5e213
Compare
Adds getters/setters to the PDK for the consumer (+credential), service, and route entities.
kong/pdk/client.lua
Outdated
|
||
|
||
--- | ||
-- Sets the authenticated consumer (and credential) for the current request. |
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 the description should be Sets the authenticated consumer and/or credential
. The current wording makes it sound like consumer is mandatory and credential is optional.
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 the description also needs to have a note "While both consumer
and credential
can be nil, it is required that at least one if them exists. Otherwise this function will throw an error".
consumer
(+credential
),service
, androute
entities.Replaces #3909