# Kong keycloak integration not working

**URL:** <https://discuss.konghq.com/t/kong-keycloak-integration-not-working/12012>\
**Category:** Questions\
**Created:** [October 24, 2023, 7:16pm UTC](https://discuss.konghq.com/t/kong-keycloak-integration-not-working/12012 "2023-10-24T19:16:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vgoelk](https://avatars.discourse-cdn.com/v4/letter/v/aeb1de/32.png) [@vgoelk](https://discuss.konghq.com/u/vgoelk)\
**Post date:** [October 24, 2023, 7:16pm UTC](https://discuss.konghq.com/t/kong-keycloak-integration-not-working/12012/1 "2023-10-24T19:16:37Z")

</div>

I am trying to integrate kong with keycloak. As of now our frontend application is using angular and users are created in keycloak and keycloak users will get bearer token from keycloak. I want to use same keycloak token in kong for authentication and authorization.

When I am trying to pass same jwt token in header, I am getting bad request response from kong. I am not able to see debug logs.

---

<div class="post-metadata">

**Author:** ![ksanders](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/ksanders/32/4241_2.png) [@ksanders](https://discuss.konghq.com/u/ksanders)\
**Post date:** [November 17, 2023, 2:56am UTC](https://discuss.konghq.com/t/kong-keycloak-integration-not-working/12012/2 "2023-11-17T02:56:18Z")

</div>

I just got this working very recently in my local Kong setup where I am testing. How are you passing JWT token in the header? It should be a Bearer type in the Authorization header, so it would look something like this…

Authorization: Bearer {sometoken}

This works great with the built-in JWT plugin to validate the signature and the token itself for authentication. I could not figure out a way to verify the claims from Keycloak using that plugin, however.
