Skip to content

Me/dpc 5484 flag primary csp email#3017

Open
MEspositoE14s wants to merge 5 commits into
mainfrom
me/dpc-5484-flag-primary-csp-email
Open

Me/dpc 5484 flag primary csp email#3017
MEspositoE14s wants to merge 5 commits into
mainfrom
me/dpc-5484-flag-primary-csp-email

Conversation

@MEspositoE14s
Copy link
Copy Markdown
Contributor

🎫 Ticket

https://jira.cms.gov/browse/DPC-5484

🛠 Changes

  • Adds a "primary" column to the user_emails table.
  • Successful login sets the primary flag based on the users most recent primary email as verified by their CSP.

ℹ️ Context

Eventually, if a user logs in with a new CSP we want to be able to tell them that they previously signed up under a previous CSP along with the email attached to it. To do this, we need to know what their primary, verified email is with each CSP.

🧪 Validation

  • Deployed to dev here.
  • Ran locally, logged in and verified primary column was populated correctly.

@MEspositoE14s MEspositoE14s requested a review from a team as a code owner May 28, 2026 14:15
def post_signin_actions(user, csp_user, auth)
ial_2_actions(user, auth)
update_email(csp_user, auth.extra.raw_info.all_emails)
update_email(csp_user, auth.extra.raw_info.all_emails, auth.info.email)
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This will probably have to be different for each CSP. Login.gov just happens to send the primary email in auth.info.email.

Copy link
Copy Markdown
Contributor

@Jose-verdance Jose-verdance left a comment

Choose a reason for hiding this comment

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

LGTM!

@MEspositoE14s MEspositoE14s requested a review from a team May 29, 2026 17:02
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.

2 participants