Opnsense SSO client registration

Hi.

Since version netbird-0.70.0 it was unable to register any opnsense client.

I have a netbird selfhosted server running 0.71.2, can register linux, windows, android, ios and osx devices without problems using SSO with ENTRA ID, but when I try to do it with an opnsense clients there is an identity error like this:

Failed to authenticate: oidc: failed to get token: oauth2: “invalid_client” “AADSTS7000215: Invalid client secret provided. Ensure the secret being sent in the request is the client secret value, not the client secret ID, for a secret added to app ‘XXXXXXXXXXXXXXXXXXXXXXXX’. Trace ID: XXXXXXXXXXXXXXXXXX Correlation ID: XXXXXXXXXXXXXXXXXXXXXXXXXXX
Timestamp: 2026-05-20 06:00:34Z” “https://login.microsoftonline.com/error?code=7000215”.

The error described at the login.microsoftonline.com say the remediation Developer error - the app is attempting to sign in without the necessary or correct authentication parameters.

Saludos !!

You should be using a setup key to connect OPNSense. The instructions to complete setup are here.