Oauth allowed scopes are not set from openid-confguration and require configuring environment variable #2096

Open
opened 2025-11-20 07:03:44 -05:00 by saavagebueno · 0 comments
Owner

Originally created by @AbsurdlySuspicious on GitHub (Jul 21, 2025).

Describe the problem

Self-hosted netbird requires setting up NETBIRD_AUTH_SUPPORTED_SCOPES variable even when supported scopes are present in openid-configuration

This might be naming problem. If this var describes which scopes SHOULD be requested by netbird (not all supported), it should be named accordingly

To Reproduce

Steps to reproduce the behavior:

  1. Setup self-hosted netbird
  2. Ensure that scopes_supported is set in openid-configuration
  3. Do not set NETBIRD_AUTH_SUPPORTED_SCOPES in setup.env

Expected behavior

NETBIRD_AUTH_SUPPORTED_SCOPES is filled with value from openid-configuration

Are you using NetBird Cloud?

Self-hosted

NetBird version

0.51.1

Is any other VPN software installed?

No

Debug output

N/A

Screenshots

N/A

Additional context

N/A

Have you tried these troubleshooting steps?

  • Reviewed client troubleshooting (if applicable)
  • Checked for newer NetBird versions
  • Searched for similar issues on GitHub (including closed ones)
  • Restarted the NetBird client
  • Disabled other VPN software
  • Checked firewall settings
Originally created by @AbsurdlySuspicious on GitHub (Jul 21, 2025). **Describe the problem** Self-hosted netbird requires setting up NETBIRD_AUTH_SUPPORTED_SCOPES variable even when supported scopes are present in openid-configuration This might be naming problem. If this var describes which scopes SHOULD be requested by netbird (not all supported), it should be named accordingly **To Reproduce** Steps to reproduce the behavior: 1. Setup self-hosted netbird 2. Ensure that `scopes_supported` is set in openid-configuration 3. Do not set NETBIRD_AUTH_SUPPORTED_SCOPES in setup.env **Expected behavior** NETBIRD_AUTH_SUPPORTED_SCOPES is filled with value from openid-configuration **Are you using NetBird Cloud?** Self-hosted **NetBird version** `0.51.1` **Is any other VPN software installed?** No **Debug output** N/A **Screenshots** N/A **Additional context** N/A **Have you tried these troubleshooting steps?** - [x] Reviewed [client troubleshooting](https://docs.netbird.io/how-to/troubleshooting-client) (if applicable) - [x] Checked for newer NetBird versions - [x] Searched for similar issues on GitHub (including closed ones) - [x] Restarted the NetBird client - [x] Disabled other VPN software - [x] Checked firewall settings
saavagebueno added the enhancementtriage-neededself-hosting labels 2025-11-20 07:03:45 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#2096