Skip to content
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

Merged
merged 2 commits into from
Nov 1, 2018
Merged

feat(pdk) add consumer, service, route handling #3916

merged 2 commits into from
Nov 1, 2018

Conversation

Tieske
Copy link
Member

@Tieske Tieske commented Oct 26, 2018

  • Adds getters/setters to the PDK for the consumer (+credential), service, and route entities.
  • refactor plugins to use the new PDK functions

Replaces #3909

kong/pdk/client.lua Outdated Show resolved Hide resolved
@Tieske Tieske force-pushed the one-more-pdk branch 2 times, most recently from 0025398 to 1d5e213 Compare October 29, 2018 22:04
kong/pdk/client.lua Outdated Show resolved Hide resolved
kong/pdk/client.lua Outdated Show resolved Hide resolved
kong/pdk/client.lua Show resolved Hide resolved
Adds getters/setters to the PDK for the consumer (+credential),
service, and route entities.


---
-- Sets the authenticated consumer (and credential) for the current request.
Copy link
Member

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.

Copy link
Member

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".

@Tieske Tieske merged commit 17916e3 into next Nov 1, 2018
@Tieske Tieske deleted the one-more-pdk branch November 1, 2018 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants