mirror of
https://github.com/juanfont/headscale.git
synced 2025-10-16 11:51:21 +00:00
feat: add strip_email_domain to normalization of namespace
This commit is contained in:
2
oidc.go
2
oidc.go
@@ -281,7 +281,7 @@ func (h *Headscale) OIDCCallback(ctx *gin.Context) {
|
||||
|
||||
now := time.Now().UTC()
|
||||
|
||||
namespaceName, err := NormalizeNamespaceName(claims.Email)
|
||||
namespaceName, err := NormalizeNamespaceName(claims.Email, h.cfg.OIDC.StripEmaildomain)
|
||||
if err != nil {
|
||||
log.Error().Err(err).Caller().Msgf("couldn't normalize email")
|
||||
ctx.String(
|
||||
|
Reference in New Issue
Block a user