From b7c3c5025df97ad6891965777dd42165323ec54d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Nohlg=C3=A5rd?= Date: Thu, 14 Nov 2024 15:30:19 +0100 Subject: [PATCH] feat: add support for Zitadel IdP MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Make Omni map the identity and username from the SAML response from the Zitadel without any customizations required. Signed-off-by: Joakim NohlgÄrd --- internal/backend/saml/session.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/backend/saml/session.go b/internal/backend/saml/session.go index ae90e705..24b71be9 100644 --- a/internal/backend/saml/session.go +++ b/internal/backend/saml/session.go @@ -372,6 +372,9 @@ func LocateUserInfo(assertion *saml.Assertion) (UserInfo, error) { "email": &user.Identity, "givenName": &givenName, "surname": &surname, + // Zitadel SAML + "UserName": &user.Identity, + "FullName": &user.Fullname, } // Google SAML keeps that info in Subject.