From 99dc71ef1cd0b0df40973d367fbee2d3bcc80329 Mon Sep 17 00:00:00 2001
From: Frederic Jahn <frederic.jahn@hanko.io>
Date: Mon, 26 Aug 2024 11:33:25 +0200
Subject: [PATCH] fix: fix email verified check for saml

---
 backend/ee/saml/provider/saml.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/backend/ee/saml/provider/saml.go b/backend/ee/saml/provider/saml.go
index 2cbc5dcf4..82eabc97a 100644
--- a/backend/ee/saml/provider/saml.go
+++ b/backend/ee/saml/provider/saml.go
@@ -76,7 +76,7 @@ func (sp *BaseSamlProvider) GetUserData(assertionInfo *saml2.AssertionInfo) *thi
 
 	email := thirdparty.Email{
 		Email:    emailAddress,
-		Verified: assertionValues.Get(attributeMap.EmailVerified) != "",
+		Verified: assertionValues.Get(attributeMap.EmailVerified) == "true",
 		Primary:  true,
 	}