mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-13 23:07:34 +00:00
fix(idp): make external id check case insensitive (#10460)
# Which Problems Are Solved When searching for an existing external userID from an IdP response, the comparison is case sensitive. This can lead to issues esp. when using SAML, since the `NameID`'s value case could change. The existing user would not be found and the login would try to create a new one, but fail since the uniqueness check of IdP ID and external userID is not case insensitive. # How the Problems Are Solved Search case insensitive for external useriDs. # Additional Changes None # Additional Context - closes #10457, #10387 - backport to v3.x
This commit is contained in:
@@ -178,7 +178,7 @@ func NewIDPUserLinksResourceOwnerSearchQuery(value string) (SearchQuery, error)
|
||||
}
|
||||
|
||||
func NewIDPUserLinksExternalIDSearchQuery(value string) (SearchQuery, error) {
|
||||
return NewTextQuery(IDPUserLinkExternalUserIDCol, value, TextEquals)
|
||||
return NewTextQuery(IDPUserLinkExternalUserIDCol, value, TextEqualsIgnoreCase)
|
||||
}
|
||||
|
||||
func prepareIDPUserLinksQuery() (sq.SelectBuilder, func(*sql.Rows) (*IDPUserLinks, error)) {
|
||||
|
Reference in New Issue
Block a user