Any way to support custom type of kong consumer credential #6715
Unanswered
professor-layton
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
From the SupportedTypes in internal/admission/validation/consumers/credentials/vars.go, it's a list for current supported kong consumer credential type: "basic-auth", "hmac-auth","jwt", "key-auth", "oauth2", "acl", "mtls-auth".
I think they're also the only values we can specify in our kong consumer credential, no matter in kongCredType way or annotation konghq.com/credential way.
I'm writing some kong plugin which has some functional extension of "jwt", I call it "ejwt". But when I specified the konghq.com/credential or kongCredType to "ejwt", it doesn't work and the credential can't be listed by kong admin api (curl -X GET http://localhost:8001/consumers//jwt) even I already defined the daos and schemas for "ejwt" plugin.
So I wonder if there's any way to add custom type of kong consumer credential to enable the kong ingress-controller detect this credential type and load corresponding fields, the same behavior as the official jwt plugin.
Does anyone knows about it ? Thanks in advanced.
Beta Was this translation helpful? Give feedback.
All reactions