Skip to content

refactor(backend): Relocate User Login info from User table to AuthProvider table - #7055

Draft
Neilk1021 wants to merge 10 commits into
apache:mainfrom
Neilk1021:task/migrateBackend
Draft

refactor(backend): Relocate User Login info from User table to AuthProvider table#7055
Neilk1021 wants to merge 10 commits into
apache:mainfrom
Neilk1021:task/migrateBackend

Conversation

@Neilk1021

Copy link
Copy Markdown
Contributor

What changes were proposed in this PR?

As discussed in #6716 we'd like to split authentication handling into its own table auth_providers. For future support of multiple sources of authentication (e.g. github, IEEE accounts, etc.). This PR migrate the Schema from the image on the left to the one on the right.

image image

This PR:

  1. Creates a new auth_providers table in texera_ddl.
  2. Providers a migration script 29.sql to migrate old account data to the new schema.
  3. Refactors backend to match new schema.
  4. Refactors portions of GoogleAuthService to a generic ExternalAuthProvisioner to be used in future PRs adding new external logins.

Any related issues, documentation, discussions?

Closes #7048

How was this PR tested?

Compiled and ran all tests as well as deployed locally to verify functionality.

Was this PR authored or co-authored using generative AI tooling?

Co-authored with Claude Opus 4.8

@github-actions github-actions Bot added engine ddl-change Changes to the TexeraDB DDL common platform Non-amber Scala service paths labels Jul 29, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Automated Reviewer Suggestions

Based on the git blame history of the changed files, we recommend the following reviewers:

  • Contributors with relevant context: @Yicong-Huang, @Ma77Ball, @mengw15
    You can notify them by mentioning @Yicong-Huang, @Ma77Ball, @mengw15 in a comment.

@Neilk1021 Neilk1021 changed the title task(backend): Relocate User Login info from User table to AuthProvider table refactor(backend): Relocate User Login info from User table to AuthProvider table Jul 29, 2026
@Neilk1021
Neilk1021 marked this pull request as draft July 29, 2026 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

common ddl-change Changes to the TexeraDB DDL engine platform Non-amber Scala service paths

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Relocate User Login info from User table to AuthProvider table.

1 participant