Skip to content
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

refactor: Use email for SSO #1354

Merged
merged 78 commits into from
May 27, 2024
Merged

refactor: Use email for SSO #1354

merged 78 commits into from
May 27, 2024

Conversation

ukrocks007
Copy link
Contributor

No description provided.

The ssoVerifySchema in the schema.ts file has been updated to handle both email and slug parameters. The schema now allows for either email or slug to be provided, and at least one of them is required. This change ensures that the ssoVerifySchema can handle different scenarios when verifying SSO information.
Copy link

vercel bot commented May 9, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
saas-starter-kit ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 27, 2024 8:20am

The code changes in `verify.ts` refactor the SSO verification process to improve handling of different scenarios and provide more informative error messages. The `handlePOST` function now uses the `handleTeamSSOVerification` function to handle SSO verification for a given team ID. Additionally, the code now properly handles cases where there are multiple teams with SSO connections and prompts the user to provide a team slug. This refactor ensures a smoother SSO verification experience and better error handling.
This commit refactors the code in `sso.login.spec.ts` to create a new SSO connection for a new team. The `createSSOConnection` function is introduced to handle the process of creating an SSO connection. It takes the page object, team slug, and metadata URL as parameters. The function navigates to the SSO page for the specified team, clicks the "New Connection" button, fills in the metadata URL, saves the connection, and verifies that the connection is visible in the SSO connections table. This refactor improves the readability and maintainability of the code for creating SSO connections.
This commit updates the Playwright configuration for the Chromium project. It adds additional properties to the `use` object, including `baseURL` set to `http://localhost:4002` and `channel` set to `chrome`. It also adds a `port` property to the `webServer` object, set to `4002`. These changes are made to improve the configuration for running tests with Playwright in the Chromium browser.
@deepakprabhakara deepakprabhakara merged commit 837981d into main May 27, 2024
4 checks passed
@deepakprabhakara deepakprabhakara deleted the use-email-for-sso branch May 27, 2024 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants