Fix Keycloak deployment with IDP #414

Open
opened 2025-11-20 05:11:04 -05:00 by saavagebueno · 2 comments
Owner

Originally created by @emferrandi on GitHub (Aug 10, 2023).

Describe the problem
In the documentation, you don't mention the variable TokenEndpoint for IdpManagerConfig.
This variable is set up in management.json configuration.
Do you have to correct the script and the documentation or the script

I saw the correct configuration in this issue : https://github.com/netbirdio/netbird/issues/475

To Reproduce
Steps to reproduce the behavior:

  1. Follow this documentation on step 9 when setup.env is to be completed : https://docs.netbird.io/selfhosted/identity-providers#keycloak
  2. Run the script configure.sh : https://docs.netbird.io/selfhosted/selfhosted-guide#step-4-disable-single-account-mode-optional
  3. See the result in the setup.env

Expected behavior

    "IdpManagerConfig": {
        "ManagerType": "keycloak",
        "ClientConfig": {
            "Issuer": "null",
            "TokenEndpoint": "https://sso.***/realms/netbird/protocol/openid-connect/token",
            "ClientID": "netbird-backend",
            "ClientSecret": "SecretKey",
            "GrantType": "client_credentials"
        },
        "ExtraConfig": {
            "AdminEndpoint": "https://sso.***/admin/realms/netbird"
        }
     },

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Run netbird with Keycloak

Originally created by @emferrandi on GitHub (Aug 10, 2023). **Describe the problem** In the documentation, you don't mention the variable TokenEndpoint for IdpManagerConfig. This variable is set up in management.json configuration. Do you have to correct the script and the documentation or the script I saw the correct configuration in this issue : https://github.com/netbirdio/netbird/issues/475 **To Reproduce** Steps to reproduce the behavior: 1. Follow this documentation on step 9 when setup.env is to be completed : https://docs.netbird.io/selfhosted/identity-providers#keycloak 2. Run the script configure.sh : https://docs.netbird.io/selfhosted/selfhosted-guide#step-4-disable-single-account-mode-optional 3. See the result in the setup.env **Expected behavior** ``` "IdpManagerConfig": { "ManagerType": "keycloak", "ClientConfig": { "Issuer": "null", "TokenEndpoint": "https://sso.***/realms/netbird/protocol/openid-connect/token", "ClientID": "netbird-backend", "ClientSecret": "SecretKey", "GrantType": "client_credentials" }, "ExtraConfig": { "AdminEndpoint": "https://sso.***/admin/realms/netbird" } }, ``` **Screenshots** If applicable, add screenshots to help explain your problem. **Additional context** Run netbird with Keycloak
saavagebueno added the bugdocumentationwaiting-feedbackidpconfig-idp labels 2025-11-20 05:11:04 -05:00
Author
Owner

@nazarewk commented on GitHub (Apr 17, 2025):

@emferrandi can you confirm whether this is still an issue for you?

@nazarewk commented on GitHub (Apr 17, 2025): @emferrandi can you confirm whether this is still an issue for you?
Author
Owner

@SpiralCut commented on GitHub (May 16, 2025):

Not OP but I can confirm this happened on an new install as of May 16, 2025 and adding the lines resolved a failed to add new provider due to missing AdminEndpoint error in the logs.

@SpiralCut commented on GitHub (May 16, 2025): Not OP but I can confirm this happened on an new install as of May 16, 2025 and adding the lines resolved a failed to add new provider due to missing AdminEndpoint error in the logs.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#414