Skip to content

Commit

Permalink
Fix Microsoft connector emailToLowercase for refresh token
Browse files Browse the repository at this point in the history
  • Loading branch information
hur committed Aug 16, 2024
1 parent 5c66c71 commit 49bb349
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions connector/microsoft/microsoft.go
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,10 @@ func (c *microsoftConnector) Refresh(ctx context.Context, s connector.Scopes, id
return identity, fmt.Errorf("microsoft: get user: %v", err)
}

if c.emailToLowercase {
user.Email = strings.ToLower(user.Email)
}

identity.Username = user.Name
identity.Email = user.Email

Expand Down

0 comments on commit 49bb349

Please sign in to comment.