Headscale
Create OIDC Client in Pocket ID
- Create a new OIDC Client in Pocket ID (e.g.,
Headscale
). - Set the callback URL:
https://<HEADSCALE-DOMAIN>/oidc/callback
- Enable
PKCE
. - Copy the Client ID and Client Secret.
Configure Headscale
Refer to the example
config.yaml
for full OIDC configuration options.
Add the following to config.yaml
:
oidc:
issuer: "https://<POCKET-ID-DOMAIN>"
client_id: "<CLIENT-ID>"
client_secret: "<CLIENT-SECRET>"
pkce:
enabled: true
method: S256
(Optional) Restrict Access to Certain Groups
To allow only specific groups, add:
scope: ["openid", "profile", "email", "groups"]
allowed_groups:
- <POCKET-ID-GROUP-NAME> #example: headscale