headscale/.github
Christopher Johnstone 205a008013 Allow use of the preferred_username OIDC claim
Previously, Headscale would only use the `email` OIDC
claim to set the Headscale user. In certain cases
(self-hosted SSO), it may be useful to instead use the
`preferred_username` to set the Headscale username.
This also closes #938.

This adds a config setting to use this claim instead.
The OIDC docs have been updated to include this entry as well.
In addition, this adds an Authelia OIDC example to the docs.

Added OIDC claim integration tests.

Updated the MockOIDC wrapper to take an environment variable that
lets you set the username/email claims to return.

Added two integration tests, TestOIDCEmailGrant and
TestOIDCUsernameGrant, which check the username by checking the FQDN of
clients.

Updated the HTML template shown after OIDC login to show whatever
username is used, based on the Headscale settings.
2023-10-29 16:55:20 -04:00
..
ISSUE_TEMPLATE update readme and templates to clarify scope (#1437) 2023-05-10 08:03:13 +01:00
workflows Allow use of the preferred_username OIDC claim 2023-10-29 16:55:20 -04:00
CODEOWNERS CODEOWNER: add renovate config ohdearaugustin 2022-02-19 20:28:08 +01:00
FUNDING.yml Add ko-fi sponsor button 2022-12-22 17:25:49 +01:00
pull_request_template.md update readme and templates to clarify scope (#1437) 2023-05-10 08:03:13 +01:00
renovate.json update readme and templates to clarify scope (#1437) 2023-05-10 08:03:13 +01:00