keycloak-nodejs-admin-client icon indicating copy to clipboard operation
keycloak-nodejs-admin-client copied to clipboard

`keycloak-nodejs-admin-client` and `keycloak-nodejs-connect` integration

Open mrdimidium opened this issue 5 years ago • 4 comments

I use keycloak-nodejs-connect (more precisely, my own fork) for authorization in the project, and I also need to manage roles/permissions.

It would be great if keycloak-nodejs-admin-client could use tokens from keycloak-nodejs-connect.

mrdimidium avatar Oct 22 '19 13:10 mrdimidium

@nikolay-govorov please add more details.

zagaria avatar Oct 24 '19 08:10 zagaria

Hello! What kind? How do I use the system, what is the problem, what do I want?

mrdimidium avatar Oct 24 '19 09:10 mrdimidium

Hello. To clarify - I don't understand your request about tokens.

https://github.com/keycloak/keycloak-nodejs-connect and https://github.com/keycloak/keycloak-nodejs-admin-client/ have different targets - to protect the server-side application vs administrator management. Or you mean the possibility to pass the user with admin privileges tokens (access token and refresh token) for auth without using username and password in the configuration for keycloak-nodejs-admin-client?

zagaria avatar Oct 25 '19 06:10 zagaria

Yes! We use both possibilities, and we want to transfer access tokens to admin without entering a login/password at ourselves.

mrdimidium avatar Oct 25 '19 07:10 mrdimidium

Hi, I have the same use case here, is there an update on the status of this issue?

bwoody3142 avatar Nov 01 '22 14:11 bwoody3142

We now allow you to register a TokenProvider, which should be allow you to provide an access token to the Admin Client used for requests.

You can see an example implementation in the Admin UI, where we retrieve the token from Keycloak JS.

jonkoops avatar Nov 14 '22 11:11 jonkoops