WG-Access-Server
Set up Pocket ID authentication for wg-access-server
WG-Access-Server supports OIDC out of the box.
Pocket ID Setup
- In Pocket ID create a new OIDC client, name it, for example,
wg-access-server. - (Optionally) Set a logo for this OIDC client.
- The callback URL can be set to "almost anything." Upstream recommends using
/callback, with the complete URL being for examplehttps://wg.example.com/callback. - Leave
Public ClientandPKCEunchecked. - Copy the
Client IDandClient Secretvalues for use in the next steps.
WG-Access-Server Setup
- Open the
config.yamlused by the server. - Create an
authsection with anoidcsubsection. - Enter the values as follows:
For further reference, consult the upstream documentation.
Managing Privileges
It is possible to map groups of users allowed to access wg-access-server as well as define a group of users with admin privileges.
For example, when using LLDAP as a backend for Pocket-ID, all LLDAP Administrators (members of group lldap_admin) can also be granted administrative privileges in wg-access-server using the claim mapping
Note that you will need to enable the groups scope in the configuration.
Restricting E-Mail Domains
WG-Access-Server can optionally restrict user access to specific e-mail domains:
Note that you will need to enable the email scope in the configuration.