mirror of
https://github.com/juanfont/headscale.git
synced 2026-02-23 13:50:36 +01:00
Some OIDC providers (e.g. Google OAuth) do not send the preferred_username claim when the profile scope is requested, causing the username in Headscale to be blank. Add oidc.use_email_as_username config option (default: false) that, when enabled, uses the email claim as the username if preferred_username is not available. When preferred_username is present, it is always used regardless of this setting. - Add UseEmailAsUsername to OIDCConfig with viper wiring - Extend FromClaim() to accept useEmailAsUsername parameter - Add 5 test cases covering fallback enabled/disabled, priority, empty email, and unverified email scenarios - Update docs, config example, and Google OAuth guidance Fixes #3071. Cheers! |
||
|---|---|---|
| .. | ||
| integration | ||
| acls.md | ||
| api.md | ||
| configuration.md | ||
| debug.md | ||
| derp.md | ||
| dns.md | ||
| oidc.md | ||
| registration.md | ||
| routes.md | ||
| tags.md | ||
| tls.md | ||