Headscale
Sign in to the Headscale VPN control server with Pocket ID.
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
Headscaleand add the callback URLhttps://headscale.example.com/oidc/callback. - Click Create and copy the Client ID and the Client secret. The client secret is only shown once.
- On the client’s General tab, turn on PKCE, then click Save.
- On the client’s Access tab, select the groups that may sign in under Allowed User Groups, or choose All Users.
Configure Headscale
Section titled “Configure Headscale”Add the following to config.yaml:
oidc: issuer: 'https://id.example.com' client_id: '<client-id>' client_secret: '<client-secret>' pkce: enabled: true method: S256Restrict access to certain groups
Section titled “Restrict access to certain groups”(Optional) To allow only specific groups, add the following under oidc::
oidc: scope: ['openid', 'profile', 'email', 'groups'] allowed_groups: - <POCKET-ID-GROUP-NAME> # example: headscale