mirror of
https://github.com/pocket-id/website.git
synced 2026-02-16 14:27:17 -08:00
951 B
951 B
title, description
| title | description |
|---|---|
| Headscale | Configure Headscale VPN with Pocket ID OIDC |
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, or leave blank to autofill on first login. - Enable
PKCE. - Copy the Client ID and Client Secret.
Configure Headscale
Note
Refer to the example
config.yamlfor 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