Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

howto-kong_with_keycloak -> Can you explain that? #2

Closed
TDFS-Dom opened this issue Mar 28, 2018 · 3 comments
Closed

howto-kong_with_keycloak -> Can you explain that? #2

TDFS-Dom opened this issue Mar 28, 2018 · 3 comments

Comments

@TDFS-Dom
Copy link

https://ncarlier.gitbooks.io/oss-api-management/content/howto-kong_with_keycloak.html
I don't know validation
1.Keycloak: generate token
2. Send token to Kong? I don't know check token in Kong. Please help me>?

@ncarlier
Copy link
Owner

Hi,
I don't understand what your problem is? Can you be more specific, please?
Are you trying to use the OIDC Kong plugin or the JWT Kong plugin?

@TDFS-Dom
Copy link
Author

that task i want validate token from keycloak to kong and redirect with rule of keycloak for Kong

@ncarlier
Copy link
Owner

To make Kong validate the JWT issued by Keycloak you can use either a secret or asymmetric key. If you use a secret key, you must share it between the two services.
If you use an asymmetric key, you must provide the public key to Kong to validate the token.

With the JWT plugin, this redirection have to be handled by the client. If the API returns a 401 or 403 response (from Kong) then your client have to redirect to Keycloak by itself. If you are using a JS client you can use the JS Keycloak adapter to help you to handle this.

If you want to be redirected from Kong to Keycloak then you have to use the OpenID Connect plugin.

@ncarlier ncarlier closed this as completed May 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants