Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

different secret per realm #1

Open
jardakotesovec opened this issue Sep 17, 2018 · 3 comments
Open

different secret per realm #1

jardakotesovec opened this issue Sep 17, 2018 · 3 comments

Comments

@jardakotesovec
Copy link

Hi,
I have similar use case where I need to have multiple realms handled with keycloak. I am bit confused that this middleware seems to just have exactly same config for all keycloak instances except the realm name. How could I set different secret (`{credentials {secret: 'secret123' }}) for different realms?

I am wondering how you actually using that - you somehow imported same secrets in each realm? Or maybe I am missing something and is possible to set different secrets per realm?

Any feedback appreciated. Thanks!

@c3s4r
Copy link
Member

c3s4r commented Sep 17, 2018

Hi @jardakotesovec. We built this module for bearer-only clients, so we didn't add support for different client secrets. A PR would be welcome though ;)

@MumblesNZ
Copy link

@jardakotesovec did you find a solution for this?

If we could authenticate the client with JWT then we could use a common private key across multiple realms, but I couldn't get the keycloak nodejs adapter to work with the JWT's.

@jardakotesovec
Copy link
Author

jardakotesovec commented Aug 15, 2019

@MumblesNZ Hi, were able to use original keycloak-nodejs-connect with this approach. With this strategy I can have multiple Keycloak instances with difference configurations and pick the correct one for each request.

We are using this approach in production and works just fine.

daedmunoz pushed a commit that referenced this issue Nov 6, 2020
Add this.accessDenied to keycloakObject
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants