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

How to get Consumers List #206

Open
pachico opened this issue May 22, 2024 · 2 comments
Open

How to get Consumers List #206

pachico opened this issue May 22, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@pachico
Copy link

pachico commented May 22, 2024

I am writing a plugin that needs to Authenticate SOAP requests so I cannot use the built-in Key Auth plugin.
To do this, I need to access the list of defined consumers (the same one I would use with the Key Auth plugin) so I can match password/token against it and see if the user is authenticated.
However, I cannot find any method in the SDK that would provide me with such list. I know this is available in Lua, though.

Can you point me in the right direction?

Thank you in advance

@Water-Melon Water-Melon added the question Further information is requested label May 29, 2024
@gszr
Copy link
Member

gszr commented Jan 14, 2025

Hi @pachico,

The Go PDK does not provide any helpers to query Kong entities; I understand this isn't ideal, but a potential solution for DB mode is to query the entities from the Golang side. I will tag this an enhancement proposal and add this to our ideas board.

Thank you!

@gszr gszr added enhancement New feature or request and removed question Further information is requested labels Jan 14, 2025
@pachico
Copy link
Author

pachico commented Jan 15, 2025

Unfortunately this is a show stopper as we use the declarative db-less deployment.
In particular, we want this to add a new Authentication method for SOAP messages, where the Key is embedded in the payload.
Would you happen to know another way to do it in Go?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants