[GH-ISSUE #4220] Netbird Dashboard tries to access OIDC userinfo endpoint, even though PKCEAuthorizationFlow.ProviderConfig.UseIDToken is true #8274

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

Originally created by @uedvt359 on GitHub (Jul 25, 2025).
Original GitHub issue: https://github.com/netbirdio/netbird/issues/4220

Describe the problem

As far as I understand, setting PKCEAuthorizationFlow.ProviderConfig.UseIDToken in management.json to true should prevent netbird from fetching http://idp.example.com/oidc/userinfo, and use the values returned from https://idp.example.com/oidc/token instead.
This does not work as expected, and the userinfo endpoint is still queried.
We don't have the userinfo endpoint enabled in our IdP, and our IdP team is weary about any unnecessary configuration changes there.

  • Q: How can we prevent Netbird from calling /userinfo?

To Reproduce

Steps to reproduce the behavior:

  1. set NETBIRD_AUTH_PKCE_USE_ID_TOKEN="true" in setup.env
  2. rebuild config and restart the containers
  3. log into the dashboard using OIDC
  4. See the unexpected (and failed) request to /userinfo in the browser devtools network panel

Expected behavior

The request to /userinfo should not have happened, and the data should have been taken from the /tokens endpoint.

Are you using NetBird Cloud?

self-hosted NetBird's control plane.

NetBird version

no client involved yet, server software is: 0.51.2

Is any other VPN software installed?

no

Debug output

no client involved. nothing printed to docker logs ... either.

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

We use Shibboleth as our IdP.

Have you tried these troubleshooting steps?

  • Reviewed client troubleshooting (if applicable) n/a
  • Checked for newer NetBird versions
  • Searched for similar issues on GitHub (including closed ones)
  • Restarted the NetBird client n/a
  • Disabled other VPN software n/a
  • Checked firewall settings n/a
Originally created by @uedvt359 on GitHub (Jul 25, 2025). Original GitHub issue: https://github.com/netbirdio/netbird/issues/4220 **Describe the problem** As far as I understand, setting `PKCEAuthorizationFlow.ProviderConfig.UseIDToken` in management.json to `true` should prevent netbird from fetching http://idp.example.com/oidc/userinfo, and use the values returned from https://idp.example.com/oidc/token instead. This does not work as expected, and the userinfo endpoint is still queried. We don't have the userinfo endpoint enabled in our IdP, and our IdP team is weary about any unnecessary configuration changes there. * Q: How can we prevent Netbird from calling /userinfo? **To Reproduce** Steps to reproduce the behavior: 1. set `NETBIRD_AUTH_PKCE_USE_ID_TOKEN="true"` in setup.env 2. rebuild config and restart the containers 3. log into the dashboard using OIDC 4. See the unexpected (and failed) request to /userinfo in the browser devtools network panel **Expected behavior** The request to /userinfo should not have happened, and the data should have been taken from the /tokens endpoint. **Are you using NetBird Cloud?** self-hosted NetBird's control plane. **NetBird version** no client involved yet, server software is: 0.51.2 **Is any other VPN software installed?** no **Debug output** no client involved. nothing printed to `docker logs ...` either. **Screenshots** If applicable, add screenshots to help explain your problem. **Additional context** We use Shibboleth as our IdP. **Have you tried these troubleshooting steps?** - [x] Reviewed [client troubleshooting](https://docs.netbird.io/how-to/troubleshooting-client) (if applicable) **n/a** - [x] Checked for newer NetBird versions - [x] Searched for similar issues on GitHub (including closed ones) - [x] Restarted the NetBird client **n/a** - [x] Disabled other VPN software **n/a** - [x] Checked firewall settings **n/a**
saavagebueno added the idptriage-neededself-hosting labels 2026-08-05 01:17:10 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#8274