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

feat(auth): refactor auth + allow to configure auth methods by workspace #8654

Open
wants to merge 17 commits into
base: feat/add-is-multi-workspace-flag
Choose a base branch
from

Commits on Nov 20, 2024

  1. Configuration menu
    Copy the full SHA
    1f79d32 View commit details
    Browse the repository at this point in the history
  2. Merge remote-tracking branch 'upstream/main' into feat/allow-to-selec…

    …t-auth-methods-by-workspace
    
    # Conflicts:
    #	packages/twenty-front/src/modules/auth/sign-in-up/components/SignInUpForm.tsx
    #	packages/twenty-front/src/modules/auth/sign-in-up/hooks/useSignInUpForm.ts
    AMoreaux committed Nov 20, 2024
    Configuration menu
    Copy the full SHA
    778a4de View commit details
    Browse the repository at this point in the history
  3. refactor(auth): clean up unused imports

    Remove unused imports from SignInUpGlobalScopeForm.tsx to improve code readability and reduce clutter. This change simplifies the module by eliminating unnecessary dependencies.
    AMoreaux committed Nov 20, 2024
    Configuration menu
    Copy the full SHA
    b920e70 View commit details
    Browse the repository at this point in the history
  4. fix(logging): Disable eslint warning for console.error

    Suppress eslint warnings for console.error in error handling. This ensures cleaner code and maintains log output for better debugging.
    AMoreaux committed Nov 20, 2024
    Configuration menu
    Copy the full SHA
    9c548ea View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    5eb4245 View commit details
    Browse the repository at this point in the history
  6. fix(auth): correct authProviders test state

    Correct the expected state in useAuth test to reflect the accurate status of authProviders. This includes setting 'google' and 'password' to true, and initializing 'sso' as an empty array.
    AMoreaux committed Nov 20, 2024
    Configuration menu
    Copy the full SHA
    8fd43b3 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    aa75a65 View commit details
    Browse the repository at this point in the history

Commits on Nov 21, 2024

  1. Configuration menu
    Copy the full SHA
    493955e View commit details
    Browse the repository at this point in the history
  2. Merge branch 'feat/add-is-multi-workspace-flag' into feat/allow-to-se…

    …lect-auth-methods-by-workspace
    AMoreaux committed Nov 21, 2024
    Configuration menu
    Copy the full SHA
    4e0e318 View commit details
    Browse the repository at this point in the history
  3. Merge branch 'feat/add-is-multi-workspace-flag' into feat/allow-to-se…

    …lect-auth-methods-by-workspace
    
    # Conflicts:
    #	packages/twenty-front/src/generated/graphql.tsx
    AMoreaux committed Nov 21, 2024
    Configuration menu
    Copy the full SHA
    e076eb1 View commit details
    Browse the repository at this point in the history
  4. [type](graphql): Refactor SSO handling and workspace queries

    Updated SSO identity provider type and added types for workspace queries. Removed deprecated mutations and queries related to SSO identity providers and JWT generation. Added new fields and types to support improved workspace querying and switching capabilities.
    AMoreaux committed Nov 21, 2024
    Configuration menu
    Copy the full SHA
    23fcc66 View commit details
    Browse the repository at this point in the history

Commits on Nov 22, 2024

  1. ```

    refactor(auth): thanks greptile
    ```
    AMoreaux committed Nov 22, 2024
    Configuration menu
    Copy the full SHA
    3bceb0d View commit details
    Browse the repository at this point in the history
  2. [refactor] Reorganize workspaceValidator import order

    Move import of workspaceValidator to maintain consistent import structure. This enhances readability and aligns with the project's import organization standards.
    AMoreaux committed Nov 22, 2024
    Configuration menu
    Copy the full SHA
    e1fe368 View commit details
    Browse the repository at this point in the history
  3. refactor(auth): remove unused imports

    Removed unused imports from SignInUpGlobalScopeForm and SettingsSecurityOptionsList components. This cleanup improves code readability and reduces potential maintenance overhead.
    AMoreaux committed Nov 22, 2024
    Configuration menu
    Copy the full SHA
    e6d81c9 View commit details
    Browse the repository at this point in the history
  4. feat(auth): Add mock handler for workspace data query

    Added `GET_PUBLIC_WORKSPACE_DATA_BY_SUBDOMAIN` query mock handler to return mock workspace data. Also updated the button text check in SignInUp stories for consistency.
    AMoreaux committed Nov 22, 2024
    Configuration menu
    Copy the full SHA
    8e6e42b View commit details
    Browse the repository at this point in the history
  5. feat(testing): add new GraphQL mock for getPublicWorkspaceDataBySubdo…

    …main
    
    Introduced a GraphQL query mock for the GET_PUBLIC_WORKSPACE_DATA_BY_SUBDOMAIN query in the testing setup. This includes relevant mock data and necessary imports for thorough test coverage. Additionally, fixed a typo in the mock configuration from isMultiworkspaceEnabled to isMultiWorkspaceEnabled and updated enums for status and type in SSOIdentityProvider.
    AMoreaux committed Nov 22, 2024
    Configuration menu
    Copy the full SHA
    1d02883 View commit details
    Browse the repository at this point in the history

Commits on Nov 25, 2024

  1. fix(): conflict

    AMoreaux committed Nov 25, 2024
    Configuration menu
    Copy the full SHA
    a087ec4 View commit details
    Browse the repository at this point in the history