Skip to content

feat: user migration/email change from AAF to Auth0 (AAI-895) - #309

Merged
marius-mather merged 20 commits into
aaf-devfrom
feat/migrate-auth0-to-aaf
Nov 5, 2026
Merged

marius-mather merged 20 commits into
aaf-devfrom
feat/migrate-auth0-to-aaf

Conversation

@marius-mather

@marius-mather marius-mather commented Nov 2, 2026 •

Copy link
Copy Markdown
Collaborator

Description

AAI-895: implement migration/email change for existing users - from AAF to Auth0

Changes

  • /migrate/aaf-to-auth0 endpoint: creates migration request, creates a (blocked and unverified) user in Auth0's DB connection if needed, sends an OTP to verify the request
  • /migrate/aaf-to-auth0/complete endpoint: finalizes migration, links the Auth0 account to the AAF identity, unblocks and verifies it
  • Unit tests

Checklist

  • I have commented my code, particularly in hard-to-understand areas
  • I have added unit / integration tests that prove my fix is effective or that my feature works
  • I have run all tests locally and they pass
  • I have updated the documentation (if applicable)
  • For any new secrets, I have updated the shared spreadsheet and the GitHub Secrets.

How to Test Manually (if necessary)

Run uv run pytest

@marius-mather marius-mather changed the title Feat/migrate auth0 to aaf feat: user migration/email change from AAF to Auth0 (AAI-895) Nov 2, 2026

@amandazhuyilan amandazhuyilan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nothing dramatic - just 2 things that need to clarify..

Comment thread auth/otp.py Resolved
Comment thread templates/emails/aaf_migration_otp.html Resolved
Comment thread biocommons/emails.py Resolved
@marius-mather
marius-mather merged commit 526179f into aaf-dev Nov 5, 2026
4 checks passed
@marius-mather
marius-mather deleted the feat/migrate-auth0-to-aaf branch November 5, 2026 00:03
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.

3 participants