# Keyclaok and Rocket chat

**URL:** <https://forums.rocket.chat/t/keyclaok-and-rocket-chat/17364>\
**Category:** Community Support\
**Tags:** rocketchat-apps\
**Created:** [July 22, 2023, 9:42am UTC](https://forums.rocket.chat/t/keyclaok-and-rocket-chat/17364 "2023-07-22T09:42:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![noobCode](https://avatars.discourse-cdn.com/v4/letter/n/e9c0ed/32.png) [@noobCode](https://forums.rocket.chat/u/noobCode)\
**Post date:** [July 22, 2023, 9:42am UTC](https://forums.rocket.chat/t/keyclaok-and-rocket-chat/17364/1 "2023-07-22T09:42:26Z")

</div>

Hey!  
I have a node js server which uses apis provided by keycloak to authenticate a user.  
I need to configure rocket chat so that I dont need to generate rocket chat access token again and use the same token generated by keycloak for my web app;  
Note → I have a user A with password B . When I try to click on login using keycloak on rocket chat login dashboard and enter these creds A and B then it allows me to login…when I try to get user list by an api using the token generated by login api of rocket chat it allows to do so…but when I use keycloak token generated by me node server with same creds A and B for same client is shows 401 and message as you must be logged in to do this…How can I use the same keycloak token for rocket chat access as well?
