mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 11:07:32 +00:00
fix: handle metadata from post authentication on auto creation (#6389)
(cherry picked from commit 90a62b777b
)
This commit is contained in:
@@ -410,7 +410,7 @@ func (l *Login) externalUserNotExisting(w http.ResponseWriter, r *http.Request,
|
|||||||
l.renderExternalNotFoundOption(w, r, authReq, orgIAMPolicy, human, idpLink, err)
|
l.renderExternalNotFoundOption(w, r, authReq, orgIAMPolicy, human, idpLink, err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if changed {
|
if changed || len(externalUser.Metadatas) > 0 {
|
||||||
if err := l.authRepo.SetLinkingUser(r.Context(), authReq, externalUser); err != nil {
|
if err := l.authRepo.SetLinkingUser(r.Context(), authReq, externalUser); err != nil {
|
||||||
l.renderError(w, r, authReq, err)
|
l.renderError(w, r, authReq, err)
|
||||||
return
|
return
|
||||||
|
Reference in New Issue
Block a user