How to Integrate Keycloak With Blue Brain Nexus? #2728
-
Hi, I have been searching for the instruction about how to integrate Keycloak with BB Nexus for a while but without any luck. Just wondering if anyone has managed to complete this integration? Any guide will be really appreciated! Thanks! Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi @chance2021, BB Nexus works with Keycloak without a specific "integration guide". Once you've deployed keycloak and configured a realm, you just need to create a realm in Nexus Delta by providing the OIDC discovery document URL. We typically recommend setting up 2+ realms:
Service accounts would typically have a longer token expiration (months or years), while users a short token expiration (hours). Since Keycloak only allows setting the token expiration at the realm level (instead of client), you'd need 2 realms to get this done. On the service account realm you would create a new client, configured as confidential and check the "Service Account" checkbox along with the option to login through the password grant. You will then be allowed to exchange the client-id and client-token for an access token. On the user realm you need to create a new client, named After setting up the two realms, the first thing one should do is to grant full access on
After granting full access to the service account, you can use its token to further grant access to users. I hope this is what you were looking for... |
Beta Was this translation helpful? Give feedback.
Hi @chance2021,
BB Nexus works with Keycloak without a specific "integration guide". Once you've deployed keycloak and configured a realm, you just need to create a realm in Nexus Delta by providing the OIDC discovery document URL.
Once a realm has been created in Nexus Delta, you can start granting ACLs for identities. Make sure not to lock yourself out. :)
We typically recommend setting up 2+ realms:
Service accounts would typically have a longer token expiration (months or years), while users a short token expiration (hours). Since Keycloak only allows setting the token expiration at the realm level (instead of client), you'd need 2 re…