Skip to content

Fix bug on sso providers #12841

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 24, 2025

Conversation

AMoreaux
Copy link
Contributor

No description provided.

@AMoreaux AMoreaux requested a review from charlesBochet June 24, 2025 15:14
@AMoreaux AMoreaux self-assigned this Jun 24, 2025
Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

Added defensive programming to prevent runtime errors in SSO provider handling by ensuring workspace.workspaceSSOIdentityProviders never returns undefined.

  • Added nullish coalescing operator (??) in packages/twenty-server/src/engine/core-modules/user-workspace/user-workspace.service.ts to return empty array if workspaceSSOIdentityProviders is undefined

1 file reviewed, 1 comment
Edit PR Review Bot Settings | Greptile

Comment on lines +406 to +408
identityProvider.status === 'Inactive'
? []
: [
Copy link
Contributor

Choose a reason for hiding this comment

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

style: Consider extracting this SSO provider transformation logic into a separate utility function for better reusability and testing

@charlesBochet charlesBochet changed the title feat(captcha): improve telemetry on captcha error Fix bug on sso providers Jun 24, 2025
@charlesBochet charlesBochet merged commit f5c179a into main Jun 24, 2025
43 checks passed
@charlesBochet charlesBochet deleted the fix/sentry-d9ff1b1b936044db9d43fb89bf712468 branch June 24, 2025 15:27
Copy link
Contributor

🚀 Preview Environment Ready!

Your preview environment is available at: http://bore.pub:35374

This environment will automatically shut down when the PR is closed or after 5 hours.

abdulrahmancodes pushed a commit to abdulrahmancodes/twenty that referenced this pull request Jun 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants