From adb29746628b47c6887ed39004ac664c6ea7bd3b Mon Sep 17 00:00:00 2001 From: gayathri <66356931+grvijayan@users.noreply.github.com> Date: Wed, 29 Jul 2026 15:31:34 +0200 Subject: [PATCH] fix: add the dropped idpTemplate argument (#12511) # Which Problems Are Solved This PR fixes a Go compilation error in the Login V1 caused by a previously dropped `idpTemplate` argument when calling `registerExternalUser`. # How the Problems Are Solved - Pass `idpTemplate` into `registerExternalUser` from `handleExternalNotFoundOptionCheck` to match the function signature. # Additional Changes N/A # Additional Context introduced in https://github.com/zitadel/zitadel/commit/a17af0fe934ff94fcbf6c38d56aee308e1694962#diff-ec5370dd3f47f190c01e8dee4fd027b334a523cf31e5557422dd14c6e6c90339R859 --- internal/api/ui/login/external_provider_handler.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/api/ui/login/external_provider_handler.go b/internal/api/ui/login/external_provider_handler.go index 1b9ed3c9b..f47e0db48 100644 --- a/internal/api/ui/login/external_provider_handler.go +++ b/internal/api/ui/login/external_provider_handler.go @@ -852,11 +852,11 @@ func (l *Login) handleExternalNotFoundOptionCheck(w http.ResponseWriter, r *http } linkingUser := authReq.LinkingUsers[len(authReq.LinkingUsers)-1] externalUser := mapExternalNotFoundOptionFormDataToLoginUser(data, linkingUser) - // the form only carries the editable profile fields, so preserve the ZITADEL project + // the form only carries the editable profile fields, so preserve the ZITADEL project // roles captured at authentication (stored on the linking user) to keep the // support-user instance membership grant working on the manual creation path. preserveProjectRoles(externalUser, authReq.LinkingUsers) - l.registerExternalUser(w, r, authReq, externalUser) + l.registerExternalUser(w, r, idpTemplate, authReq, externalUser) } // registerExternalUser creates an externalUser with the provided data