mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-12 11:04:25 +00:00
fix: external user check (#6038)
This commit is contained in:
parent
8dfaa1dfa5
commit
1c8037f291
@ -288,7 +288,7 @@ func (l *Login) handleExternalUserAuthenticated(
|
|||||||
externalUser := mapIDPUserToExternalUser(user, provider.ID)
|
externalUser := mapIDPUserToExternalUser(user, provider.ID)
|
||||||
// check and fill in local linked user
|
// check and fill in local linked user
|
||||||
externalErr := l.authRepo.CheckExternalUserLogin(setContext(r.Context(), ""), authReq.ID, authReq.AgentID, externalUser, domain.BrowserInfoFromRequest(r))
|
externalErr := l.authRepo.CheckExternalUserLogin(setContext(r.Context(), ""), authReq.ID, authReq.AgentID, externalUser, domain.BrowserInfoFromRequest(r))
|
||||||
if !errors.IsNotFound(externalErr) {
|
if externalErr != nil && !errors.IsNotFound(externalErr) {
|
||||||
l.renderError(w, r, authReq, externalErr)
|
l.renderError(w, r, authReq, externalErr)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -42,7 +42,7 @@ type AuthRequest struct {
|
|||||||
PrivateLabelingSetting PrivateLabelingSetting
|
PrivateLabelingSetting PrivateLabelingSetting
|
||||||
SelectedIDPConfigID string
|
SelectedIDPConfigID string
|
||||||
LinkingUsers []*ExternalUser
|
LinkingUsers []*ExternalUser
|
||||||
PossibleSteps []NextStep
|
PossibleSteps []NextStep `json:"-"`
|
||||||
PasswordVerified bool
|
PasswordVerified bool
|
||||||
MFAsVerified []MFAType
|
MFAsVerified []MFAType
|
||||||
Audience []string
|
Audience []string
|
||||||
|
Loading…
Reference in New Issue
Block a user