[GH-ISSUE #5339] Proxy External IdP (Keycloak) error #10401

Open
opened 2026-08-05 01:25:46 -04:00 by saavagebueno · 0 comments
Owner

Originally created by @da-wilky on GitHub (Feb 15, 2026).
Original GitHub issue: https://github.com/netbirdio/netbird/issues/5339

Describe the problem

Auth on Services via Proxy with SSO/OIDC (Keycloak) doesnt work. It doesnt show the login form, instead only
Image

The URI is https://idp.domain.com/realms/netbird/protocol/openid-connect/auth?client_id=&code_challenge=<code_challenge>&code_challenge_method=S256&redirect_uri=https%3A%2F%2Fnetbird.domain.com%2Fapi%2Freverse-proxy%2Fcallback&response_type=code&scope=openid+profile+email&state=<state>

Obviously there is actually the client_id missing.

What I've tried

Following the migration guide https://docs.netbird.io/selfhosted/migration/enable-reverse-proxy I modified the management.json file and added the

"HttpConfig": {
  "AuthCallbackURL": "https://netbird.domain.com/api/reverse-proxy/callback"
}

and checked for the correct keycloak redirect url. The Setup with the external keycloak IdP is working logging into Netbird. Just not for auth on those Proxy Services.

Other Auth (Pin/Password) works.

To Reproduce

Steps to reproduce the behavior:

  1. I have the microservice-arch for netbird selfhosted.
  2. Modified it for proxy to work.
  3. Add a Service, add SSO Auth.
  4. Go to the link, click on SSO Auth, redirected to Keycloak.
  5. Error Page

Expected behavior

The redirect to Keycloak should work and I should get authenticated.

Are you using NetBird Cloud?
Self-hosted

NetBird version
v0.65.1

Originally created by @da-wilky on GitHub (Feb 15, 2026). Original GitHub issue: https://github.com/netbirdio/netbird/issues/5339 **Describe the problem** Auth on Services via Proxy with SSO/OIDC (Keycloak) doesnt work. It doesnt show the login form, instead only <img width="677" height="357" alt="Image" src="https://github.com/user-attachments/assets/2996882e-44ca-4ebe-818e-9954fb8d65a8" /> The URI is `https://idp.domain.com/realms/netbird/protocol/openid-connect/auth?client_id=&code_challenge=<code_challenge>&code_challenge_method=S256&redirect_uri=https%3A%2F%2Fnetbird.domain.com%2Fapi%2Freverse-proxy%2Fcallback&response_type=code&scope=openid+profile+email&state=<state>` Obviously there is actually the client_id missing. **What I've tried** Following the migration guide https://docs.netbird.io/selfhosted/migration/enable-reverse-proxy I modified the `management.json` file and added the ``` "HttpConfig": { "AuthCallbackURL": "https://netbird.domain.com/api/reverse-proxy/callback" } ``` and checked for the correct keycloak redirect url. The Setup with the external keycloak IdP is working logging into Netbird. Just not for auth on those Proxy Services. Other Auth (Pin/Password) works. **To Reproduce** Steps to reproduce the behavior: 1. I have the microservice-arch for netbird selfhosted. 2. Modified it for proxy to work. 3. Add a Service, add SSO Auth. 4. Go to the link, click on SSO Auth, redirected to Keycloak. 5. Error Page **Expected behavior** The redirect to Keycloak should work and I should get authenticated. **Are you using NetBird Cloud?** Self-hosted **NetBird version** v0.65.1
saavagebueno added the triage-needed label 2026-08-05 01:25:46 -04:00
Sign in to join this conversation.
No Label triage-needed
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#10401