Oauth2 proxy - Reverse proxy to provide authentication with OIDC

Hello,
Is there a way to support a reverse proxy to enable OIDC authenticaiton in Kong Ingress - e.g. https://github.com/oauth2-proxy/oauth2-proxy
https://kubernetes.github.io/ingress-nginx/examples/auth/oauth-external-auth/

Have looked at the
JWT plugin (need token before hand), OAuth2 (doesnt support db-less)
and OIDC (needs Kong enterprise).

Thanks in advance,
Satish.

2 Likes

Did you manage to find a way out? I want to configure oauth2-proxy in kong kubernetes ingress controller to delegate authentication to an existing OAuth2 server.

I am also interested in this topic. My workflow sohuld be:

www.test.app.com - Kong Ingress - Oauth2-proxy - Keycloak

Can any kong expert can help me with it? As @Satish_Kumar mention, nginx ingress had a annotation that can be used to redirect request on oauth2-proxy. How can this be achieved with kong?

Is this setup overcomplex and if yes why? For me important is that my keycloak remain as IDP.

Thank you all in advance.