nokia / kong-oidc

OIDC plugin for Kong
Apache License 2.0
454 stars 320 forks source link

Redirecting the flow depending on the authenticated user #169

Open agonzalezl opened 3 years ago

agonzalezl commented 3 years ago

Hi, I'm trying to do the following and I don't know if it's feasible:

I would like to have a route (eg: /blabla) that redirects to 2 services: (eg: www.serviceone.com and www.servicetwo.com) depending on the authenticated user logged using the kong-oidc connected to keycloak. (eg: if user with name/email is foo then go to serviceone.com if user name is fee go to servicetwo.com)

Is this possible? How?

Thank you for your help.