Skip to content

Commit

Permalink
fix: external user check (#6038)
Browse files Browse the repository at this point in the history
  • Loading branch information
livio-a committed Jun 16, 2023
1 parent 8dfaa1d commit 1c8037f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/api/ui/login/external_provider_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ func (l *Login) handleExternalUserAuthenticated(
externalUser := mapIDPUserToExternalUser(user, provider.ID)
// check and fill in local linked user
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)
return
}
Expand Down
2 changes: 1 addition & 1 deletion internal/domain/auth_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ type AuthRequest struct {
PrivateLabelingSetting PrivateLabelingSetting
SelectedIDPConfigID string
LinkingUsers []*ExternalUser
PossibleSteps []NextStep
PossibleSteps []NextStep `json:"-"`
PasswordVerified bool
MFAsVerified []MFAType
Audience []string
Expand Down

1 comment on commit 1c8037f

@vercel
Copy link

@vercel vercel bot commented on 1c8037f Jun 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

docs – ./

zitadel-docs.vercel.app
docs-git-main-zitadel.vercel.app
docs-zitadel.vercel.app

Please sign in to comment.