# Connection to Consul with Keycloak and jwt?

**URL:** <https://discuss.hashicorp.com/t/connection-to-consul-with-keycloak-and-jwt/67271>\
**Category:** Consul\
**Tags:** consul\
**Created:** [May 23, 2024, 3:09pm UTC](https://discuss.hashicorp.com/t/connection-to-consul-with-keycloak-and-jwt/67271 "2024-05-23T15:09:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sb-101](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/sb-101/32/41787_2.png) [@sb-101](https://discuss.hashicorp.com/u/sb-101)\
**Post date:** [May 23, 2024, 3:09pm UTC](https://discuss.hashicorp.com/t/connection-to-consul-with-keycloak-and-jwt/67271/1 "2024-05-23T15:09:12Z")

</div>

Hi there,

I would like to use **Keycloak for the authentication of the users** , and a token saved in the attributes of the users would allow the **jwt connection to Consul** and let me use the authorized services (acl inside of course).  
My Nomad is running some jobs I want to be available for only some users depending on their permissions. These jobs are registered in Consul.  
In Consul, I configured my services with certs, acl, rules, policies, etc.

I don’t have Consul Enterprise, and I can’t find a way to either configure keycloak or consul with a jwt connection.  
In keycloak, I easily configured my realm, my users with attributes, my clients, … But what should I use for the client Consul as for: root url, home url, valid redirect uri, valid post logout redirect uri, web origins, etc.

Do you have some tips, ideas or parts of tutorials I could use for Keycloak and Consul?  
I need some help please 😮‍💨

Thank you for your help.  
BR.
