stack icon indicating copy to clipboard operation
stack copied to clipboard

Connected account API & Dashboard

Open fomalhautb opened this issue 1 year ago • 8 comments

fomalhautb avatar Sep 25 '24 23:09 fomalhautb

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

Name Status Preview Comments Updated (UTC)
stack-backend ❌ Failed (Inspect) Sep 27, 2024 5:47pm
stack-dashboard ❌ Failed (Inspect) Sep 27, 2024 5:47pm
stack-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 27, 2024 5:47pm
stack-partial-prerendering ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 27, 2024 5:47pm

vercel[bot] avatar Sep 25 '24 23:09 vercel[bot]

Security

  • No security or compliance vulnerabilities detected
  • Scanned 11 changed file(s)

Changes Detected

  • [Refactor] Update project configuration structure [apps/backend/src/app/api/v1/internal/projects/crud.tsx]

    • Replaced oauth_providers with oauth_provider_configs
    • Updated structure for auth method configurations
    • Added connected_account_configs
  • [Feature] Implement new auth method configuration system [apps/backend/src/app/api/v1/internal/projects/crud.tsx]

    • Added support for password, OTP, and OAuth auth methods
    • Introduced auth_method_configs array with type-specific configurations
  • [Refactor] Update project CRUD operations [apps/backend/src/app/api/v1/projects/current/crud.tsx]

    • Revised OAuth provider configuration handling
    • Implemented upsert operations for auth method configs
  • [Refactor] Update project data structure in shared package [packages/stack-shared/src/interface/crud/projects.ts]

    • Added new schemas for OAuth provider configs, auth method configs, and connected account configs
    • Removed deprecated fields like credential_enabled and magic_link_enabled
  • [Feature] Update client-side components for new auth structure [packages/stack/src/components-page/auth-page.tsx]

    • Modified AuthPage component to use new enabledAuthMethodConfigs
    • Updated rendering logic for different auth methods
  • [Refactor] Update StackApp implementation [packages/stack/src/lib/stack-app.ts]

    • Modified project configuration parsing to use new structure
    • Updated user and project types to reflect new auth configuration
  • [Test] Update E2E tests for new project structure [apps/e2e/tests/backend/endpoints/api/v1/internal/projects.test.ts]

    • Modified test cases to use new project configuration format
    • Added tests for auth method configs and OAuth provider configs

zeropath-ai[bot] avatar Sep 26 '24 02:09 zeropath-ai[bot]

Security

  • No security or compliance vulnerabilities detected
  • Scanned 11 changed file(s)

Changes Detected

  • [Refactor] Update project configuration structure [apps/backend/src/app/api/v1/internal/projects/crud.tsx]

    • Replaced oauth_providers with oauth_provider_configs
    • Updated structure for auth method configurations
    • Added connected_account_configs
  • [Feature] Implement new auth method configuration system [apps/backend/src/app/api/v1/internal/projects/crud.tsx]

    • Added support for password, OTP, and OAuth auth methods
    • Introduced auth_method_configs array with type-specific configurations
  • [Refactor] Update project CRUD operations [apps/backend/src/app/api/v1/projects/current/crud.tsx]

    • Revised OAuth provider configuration handling
    • Implemented upsert operations for auth method configs
  • [Refactor] Update project data structure in shared package [packages/stack-shared/src/interface/crud/projects.ts]

    • Added new schemas for OAuth provider configs, auth method configs, and connected account configs
    • Removed deprecated fields like credential_enabled and magic_link_enabled
  • [Feature] Update client-side components for new auth structure [packages/stack/src/components-page/auth-page.tsx]

    • Modified AuthPage component to use new enabledAuthMethodConfigs
    • Updated rendering logic for different auth methods
  • [Refactor] Update StackApp implementation [packages/stack/src/lib/stack-app.ts]

    • Modified project configuration parsing to use new structure
    • Updated user and project types to reflect new auth configuration
  • [Test] Update E2E tests for new project structure [apps/e2e/tests/backend/endpoints/api/v1/internal/projects.test.ts]

    • Modified test cases to use new project configuration format
    • Added tests for auth method configs and OAuth provider configs

zeropath-ai[bot] avatar Sep 26 '24 02:09 zeropath-ai[bot]

Security

  • No security or compliance vulnerabilities detected
  • Scanned 13 changed file(s)

Changes Detected

  • [Refactor] Update project configuration structure [apps/backend/src/app/api/v1/internal/projects/crud.tsx, apps/backend/src/app/api/v1/projects/current/crud.tsx]

    • Replaced oauth_providers with oauth_provider_configs
    • Added auth_method_configs and connected_account_configs
    • Updated project creation and update logic to use new structure
  • [Refactor] Modify project schema in shared package [packages/stack-shared/src/interface/crud/projects.ts]

    • Updated projectsCrudAdminReadSchema and projectsCrudClientReadSchema
    • Added new schemas for OAuth provider configs, auth method configs, and connected account configs
    • Deprecated credential_enabled and magic_link_enabled fields
  • [Refactor] Update StackApp implementation [packages/stack/src/lib/stack-app.ts]

    • Modified _clientProjectFromCrud and _adminProjectFromCrud methods
    • Updated project config types to reflect new structure
    • Removed deprecated oauthProviders from BaseUser type
  • [Refactor] Update AuthPage and OAuthButtonGroup components [packages/stack/src/components-page/auth-page.tsx, packages/stack/src/components/oauth-button-group.tsx]

    • Modified to use new project configuration structure
    • Updated logic for displaying auth methods and OAuth buttons
  • [Bug Fix] Update OAuthButton component [packages/stack/src/components/oauth-button.tsx]

    • Added fallback logic for provider IDs longer than 10 characters
  • [Refactor] Add migration for UUID provider IDs [apps/backend/prisma/migrations/20240926014352_uuid_provider_id/migration.sql]

    • Added SQL to update existing records with new random UUIDs
  • [Refactor] Update version numbers and changelogs [Multiple files]

    • Reverted version numbers from 2.6.0 to 2.5.37
    • Removed entries for version 2.6.0 from changelogs

zeropath-ai[bot] avatar Sep 26 '24 17:09 zeropath-ai[bot]

Security

  • No security or compliance vulnerabilities detected
  • Scanned 14 changed file(s)

Changes Detected

  • [Bug Fix] Fixed seed script for OAuth provider configurations [apps/backend/prisma/seed.ts]

    • Updated seed.ts to use random UUIDs for OAuth provider config IDs
    • Modified creation of OAuth provider configs and related entities
  • [Refactor] Updated project configuration structure [apps/backend/src/app/api/v1/internal/projects/crud.tsx, apps/backend/src/app/api/v1/projects/current/crud.tsx]

    • Restructured OAuth provider configs, auth method configs, and connected account configs
    • Updated CRUD operations to handle new configuration structure
  • [Feature] Added migration for UUID provider IDs [apps/backend/prisma/migrations/20240926014352_uuid_provider_id/migration.sql]

    • Created new migration to update existing records with random UUIDs
  • [Refactor] Updated project and user interfaces [packages/stack-shared/src/interface/crud/projects.ts, packages/stack/src/lib/stack-app.ts]

    • Modified project configuration schemas and types
    • Updated user and project interfaces to reflect new structure
  • [Refactor] Updated auth components to use new configuration structure [packages/stack/src/components-page/auth-page.tsx, packages/stack/src/components/oauth-button-group.tsx]

    • Modified AuthPage and OAuthButtonGroup to use new auth method configs
    • Updated logic for displaying auth options based on new configuration
  • [Chore] Reverted version numbers and changelogs [multiple files]

    • Reverted version numbers in package.json files
    • Removed entries for version 2.6.0 from CHANGELOG.md files

zeropath-ai[bot] avatar Sep 26 '24 18:09 zeropath-ai[bot]

Security

  • No security or compliance vulnerabilities detected
  • Scanned 14 changed file(s)

Changes Detected

  • [Refactor] Update project configuration structure [apps/backend/src/app/api/v1/internal/projects/crud.tsx, apps/backend/src/app/api/v1/projects/current/crud.tsx]

    • Replaced oauth_providers with oauth_provider_configs, auth_method_configs, and connected_account_configs
    • Updated project creation and update logic to use new configuration structure
    • Modified handling of authentication methods (password, OTP, OAuth)
  • [Feature] Add UUID-based provider IDs [apps/backend/prisma/migrations/20240926014352_uuid_provider_id/migration.sql, apps/backend/prisma/seed.ts]

    • Created migration to update existing records with random UUIDs
    • Updated seed script to use UUIDs for OAuth provider configurations
  • [Refactor] Update project and user interfaces [packages/stack/src/lib/stack-app.ts]

    • Removed deprecated fields like credentialEnabled and magicLinkEnabled
    • Added new fields for OAuth provider configs, auth method configs, and connected account configs
    • Updated user interface to remove deprecated oauthProviders field
  • [Refactor] Update auth components to use new config structure [packages/stack/src/components-page/auth-page.tsx, packages/stack/src/components/oauth-button-group.tsx]

    • Modified AuthPage and OAuthButtonGroup to use new enabledAuthMethodConfigs
    • Updated logic for displaying credential, magic link, and OAuth options
  • [Refactor] Update project CRUD schemas [packages/stack-shared/src/interface/crud/projects.ts]

    • Added new schemas for OAuth provider configs, auth method configs, and connected account configs
    • Removed deprecated fields from project configuration schemas
  • [Chore] Update tests for new project configuration [apps/e2e/tests/backend/endpoints/api/v1/internal/projects.test.ts, apps/e2e/tests/backend/endpoints/api/v1/projects.test.ts]

    • Updated test cases to use new project configuration structure
    • Added tests for creating projects with new auth method configs and OAuth provider configs

zeropath-ai[bot] avatar Sep 26 '24 18:09 zeropath-ai[bot]

Security

  • No security or compliance vulnerabilities detected
  • Scanned 14 changed file(s)

Changes Detected

  • [Bug Fix] Fixed bugs and tests [MULTIPLE FILES]

    • Changes implemented across backend, dashboard, and e2e tests
    • Affected components include project configuration, OAuth providers, and auth methods
    • Improved handling of OAuth provider configurations and auth method configs
  • [Refactor] Updated project configuration structure [apps/backend/src/lib/projects.tsx]

    • Replaced deprecated fields with new configuration structure
    • Added new fields for OAuth provider configs, auth method configs, and connected account configs
    • Improved type safety and consistency in project configuration
  • [Feature] Added UUID-based provider IDs [apps/backend/prisma/migrations/20240926014352_uuid_provider_id/migration.sql]

    • Implemented migration to update existing records with random UUIDs
    • Improved uniqueness and security of provider IDs
  • [Refactor] Updated CRUD handlers for projects [apps/backend/src/app/api/v1/internal/projects/crud.tsx]

    • Refactored creation and update logic for OAuth providers and auth methods
    • Improved handling of shared and standard OAuth configurations
  • [Refactor] Updated client-side components for auth [packages/stack/src/components-page/auth-page.tsx]

    • Refactored auth page to use new project configuration structure
    • Updated logic for displaying auth methods based on new config
  • [Refactor] Updated OAuth button group and individual buttons [packages/stack/src/components/oauth-button-group.tsx]

    • Adapted components to work with new project configuration structure
    • Improved handling of OAuth provider types and IDs

zeropath-ai[bot] avatar Sep 26 '24 19:09 zeropath-ai[bot]

Security

  • No security or compliance vulnerabilities detected
  • Scanned 14 changed file(s)

Changes Detected

  • [Refactor] Update project configuration structure [apps/backend/src/app/api/v1/internal/projects/crud.tsx, apps/backend/src/app/api/v1/projects/current/crud.tsx]

    • Replaced oauth_providers with oauth_provider_configs
    • Added auth_method_configs and connected_account_configs
    • Updated create and update logic for new configuration structure
  • [Refactor] Modify project schema in shared package [packages/stack-shared/src/interface/crud/projects.ts]

    • Updated projectsCrudAdminReadSchema and projectsCrudClientReadSchema
    • Added new schemas for OAuth provider configs, auth method configs, and connected account configs
    • Deprecated credential_enabled and magic_link_enabled fields
  • [Refactor] Update StackApp implementation [packages/stack/src/lib/stack-app.ts]

    • Modified project and user data structures to use new configuration format
    • Updated methods to work with new OAuth provider, auth method, and connected account configs
  • [Refactor] Update auth components [packages/stack/src/components-page/auth-page.tsx, packages/stack/src/components/oauth-button-group.tsx]

    • Modified to use new project configuration structure
    • Updated logic for displaying auth methods based on new config format
  • [Feature] Add UUID migration for OAuthProviderConfig [apps/backend/prisma/migrations/20240926014352_uuid_provider_id/migration.sql]

    • Added migration to update existing records with new random UUIDs as strings
  • [Refactor] Update e2e tests [apps/e2e/tests/backend/endpoints/api/v1/internal/projects.test.ts, apps/e2e/tests/backend/endpoints/api/v1/projects.test.ts]

    • Modified tests to use new project configuration structure
    • Updated assertions to match new API responses
  • [Chore] Revert version numbers [Multiple package.json and CHANGELOG.md files]

    • Reverted version numbers from 2.6.0 to 2.5.37 across multiple packages
  • [Test] Improved tests

    • Updated test cases to cover new configuration structure and API changes

zeropath-ai[bot] avatar Sep 27 '24 17:09 zeropath-ai[bot]