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

Use /<auth-type> endpoint to get all authentications #98

Open
hbagdi opened this issue Nov 10, 2017 · 1 comment
Open

Use /<auth-type> endpoint to get all authentications #98

hbagdi opened this issue Nov 10, 2017 · 1 comment

Comments

@hbagdi
Copy link

hbagdi commented Nov 10, 2017

To get all the keys present in Kong, the approach currently being used is:

for_each consumer {
 GET /consumers/:consumer_id_or_name/<auth-type>
}

Recently in Kong, a number of endpoints have been added to auth plugins to ease This will make the process of getting all the keys much more efficient!

To not break things with different Kong versions out there, internally we could hit GET /<auth-type>, if a 404 is returned then we fall back on the iteration approach, but if we get a 200 then, we're good.

Thoughts?

@hbagdi hbagdi changed the title Use /key-auths endpoint to get all key-auths Use /<auth-type> endpoint to get all authentications Nov 19, 2017
@CyExy
Copy link
Contributor

CyExy commented Nov 19, 2017

This would be a great addition, reducing the number of request kongfig makes is only a good thing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants