The current OAuth2 plugin doesn't support the use of an external Identity Provider such as Keycloak: http://www.keycloak.org
This would be useful specially for:
It would be great to see Keycloak compatibility.
This would be great for us too, we are using DEX.
@lg1712, @PLBrick, @rsoletob,
From open source Kong you have currently one or two options:
With JWT plugin you can verify 3rd party issued JWT tokens such as those from Keycloak or Dex (e.g. tokens issued with implicit flow). But you have to configure the public keys on Kong side and keep them in sync with your identity provider as the plugin doesn't support OpenID Connect Discovery.
With Kong Enterprise you have more options:
Kong Enterprise comes with 4 OpenID Connect plugins:
The first one is rather interesting as it supports many authentication methods in one single plugin:
also:
The plugins have been tested with many 3rd party providers:
It supports auto-configuration by using OpenID Connect discovery, and automatically reloads the public keys as well for stateless JWT (actually JWS) signature verification with several algorithms:
Learn more about Kong Priority Support, Products, HA, Demo, Training, API Certifications and Professional Services.
As this will in my opinion answer the question, I will close this.
Most helpful comment
It would be great to see Keycloak compatibility.