diff --git a/internal/auth/oauth2.go b/internal/auth/oauth2.go index e66f3656a84c9970cd4983dfecfe0196f8c8e958..01657b0056414750a326ddf1227a51dc9d591988 100644 --- a/internal/auth/oauth2.go +++ b/internal/auth/oauth2.go @@ -121,7 +121,6 @@ func (m Manager) HandleOAuth2Callback() http.Handler { http.Error(w, err.Error(), http.StatusBadRequest) return } - // Trim the user roles in case they come from LDAP for key, role := range user.Roles { user.Roles[key] = strings.TrimPrefix(strings.Split(role, ",")[0], "CN=")