From 3e9df307b80d0a62467188186a948e5eeffdc622 Mon Sep 17 00:00:00 2001 From: Bryan Frimin Date: Mon, 5 Jan 2026 10:53:54 +0100 Subject: [PATCH] Remove email type Signed-off-by: Bryan Frimin --- pkg/iam/scim/service.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/pkg/iam/scim/service.go b/pkg/iam/scim/service.go index 4fec14548..4c4780f40 100644 --- a/pkg/iam/scim/service.go +++ b/pkg/iam/scim/service.go @@ -51,13 +51,11 @@ func NewService( } } -// HashToken creates a FIPS 140 compliant SHA-256 hash of the token func HashToken(token string) []byte { hash := sha256.Sum256([]byte(token)) return hash[:] } -// GenerateToken creates a cryptographically secure random token func GenerateToken() (string, error) { bytes := make([]byte, 32) if _, err := rand.Read(bytes); err != nil { @@ -592,7 +590,6 @@ func ParseUserFromAttributes(attributes scim.ResourceAttributes) *User { Emails: []Email{ { Value: email, - Type: "work", Primary: true, }, },