NetBird
Sign in to NetBird (through ZITADEL) with Pocket ID.
Requirements
Section titled “Requirements”- NetBird self-hosted, configured with HTTPS
- Pocket ID, configured with HTTPS
Overview
Section titled “Overview”The NetBird self-hosted quick start guide configures NetBird with the default ZITADEL identity provider (IdP). This guide shows how to configure pass-through OpenID authentication via ZITADEL, back to Pocket ID.
Changing the NetBird IdP directly from ZITADEL to Pocket ID is not covered in this guide because of its complexity.
Create the client in Pocket ID
Section titled “Create the client in Pocket ID”- In Pocket ID, open Administration → OIDC Clients and click Add OIDC Client.
- Enter a name such as
NetBirdand add the callback URLs:https://netbird.example.com/ui/login/login/externalidp/callbackhttps://netbird.example.com/idps/callback - Click Create and copy the Client ID and the Client secret. The client secret is only shown once.
- On the client’s Access tab, select the groups that may sign in under Allowed User Groups, or choose All Users.
The first callback URL is for ZITADEL Login V1 and the second for Login V2, so you only need the one your ZITADEL uses.
Connect ZITADEL to Pocket ID
Section titled “Connect ZITADEL to Pocket ID”Connect the ZITADEL IdP to Pocket ID for pass-through:
- Confirm that the NetBird management console loads at
https://netbird.example.com. - Sign in to the ZITADEL management console at
https://netbird.example.com/ui/console. - Open Organization → Login and Access → Modify.
- Open Login and Access → Identity Providers.
- Under Add Provider, click Generic OIDC.
- Confirm that the ZITADEL Callback URL shown by the provider matches the callback URL in Pocket ID.
- Set the Name to
Pocket IDor anything you want. - Set the Issuer to your Pocket ID URL, for example
https://id.example.com. - Set the Client ID to the Client ID from Pocket ID.
- Set the Client Secret to the Client secret from Pocket ID.
- Expand the Optional settings.
- Add
groupsto the Scopes list. - Enable Automatic creation.
- (Optional) Enable Automatic update.
- (Optional) Enable Account creation allowed (manually).
- (Optional) Enable Account linking allowed (manually).
- (Optional) Set the identity prompt dropdown to Check for existing email or your choice.
- Click Save.
- Click Activate.
- Sign in to ZITADEL with Pocket ID to test it.
Auto-approve NetBird users
Section titled “Auto-approve NetBird users”We recommend auto-approving NetBird users (via IdP from ZITADEL) to avoid manual work:
- Sign in to NetBird with an existing admin account.
- Open Settings → Authentication.
- Disable User Approval Required.
- Click Save Changes.
Set ZITADEL login preferences
Section titled “Set ZITADEL login preferences”(Optional) Return to the ZITADEL management console and set your preferences:
- Open Organization → Login and Access → Modify again.
- In the Login Behaviour and Security section, scroll down.
- Under Login Form:
- Disable Username and Password allowed.
- Disable User Registration allowed.
- Enable External Login allowed.
- Enable Password Reset hidden.