keycloak-nodejs-admin-client
keycloak-nodejs-admin-client copied to clipboard
`keycloak-nodejs-admin-client` and `keycloak-nodejs-connect` integration
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
.
@nikolay-govorov please add more details.
Hello! What kind? How do I use the system, what is the problem, what do I want?
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?
Yes! We use both possibilities, and we want to transfer access tokens to admin without entering a login/password at ourselves.
Hi, I have the same use case here, is there an update on the status of this issue?
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.