How to modify request per consumer?

51 views
Skip to first unread message

rkca...@gmail.com

unread,
Dec 6, 2017, 11:41:02 PM12/6/17
to Kong

Hi.


I want to modify uri per consumer, like below, because below api does not have any authentication and I want to allow access via kong only.



API : 

  host:  search

  upstream_url: http://localhost/search

  plugins: key-auth, ACL


Consumer:

  consumer1

  consumer2


When consumer1 use search API with his/her key, I want to send request http://localhost/search/for_consumer1, 

and when consumer2 use search API with his/her key, I want to send request http://localhost/search/for_consumer2, 


How can I do?


Regards

Thibault Charbonnier

unread,
Dec 8, 2017, 1:40:20 AM12/8/17
to kong...@googlegroups.com
Hi,

As of today, you would have to develop a custom plugin to dynamically
modify the upstream request (there exist Lua APIs in the core to do so),
or consider purchasing our Enterprise Edition for an out of the box
solution.

By the way, we recently deprecated the usage of this mailing list, and
launched our forum, Kong Nation, at:

https://discuss.konghq.com/

It is a better place for such questions, and we believe you will get
better support there over time :)

Best,
Thibault
> --
> You received this message because you are subscribed to the Google
> Groups "Kong" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to konglayer+...@googlegroups.com
> <mailto:konglayer+...@googlegroups.com>.
> To post to this group, send email to kong...@googlegroups.com
> <mailto:kong...@googlegroups.com>.
> Visit this group at https://groups.google.com/group/konglayer.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/konglayer/63d8fdd0-05be-40a6-b12b-b97ebf4fa321%40googlegroups.com
> <https://groups.google.com/d/msgid/konglayer/63d8fdd0-05be-40a6-b12b-b97ebf4fa321%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.

rkca...@gmail.com

unread,
Dec 10, 2017, 7:43:29 PM12/10/17
to Kong
Thank you for your answer!

I merge my requirements, and I consider to develop Lua plugin or to purchase Enterprise Edition.
And thanks to your information to forum.

Regards.

2017年12月8日金曜日 15時40分20秒 UTC+9 Thibault Charbonnier:
Reply all
Reply to author
Forward
0 new messages