Fill DEV profile fields with MLH info on signup - #23677
Merged
Merged
Conversation
pmvenegas
force-pushed
the
feat/prefill-mlh-profile
branch
from
July 27, 2026 18:09
8ac7024 to
6eddfca
Compare
pmvenegas
commented
Jul 27, 2026
| uid: "123456", | ||
| info: { | ||
| email: "test@example.com", | ||
| nickname: "mlhuser", |
Contributor
Author
There was a problem hiding this comment.
Removed to reflect actual MLH behavior.
pmvenegas
force-pushed
the
feat/prefill-mlh-profile
branch
from
July 27, 2026 18:29
6eddfca to
f76701a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What type of PR is this? (check all applicable)
Description
This change prefills user profile data from MLH when an identity is linked, i.e. on OAuth registration. Specifically,
user:read:education,user:read:employment, anduser:read:addressare added to the MLH OAuth strategy, since these correspond to profile data we can use.Authentication::Authenticator#call, an worker is enqueued that:location), with support for ProfileFields looked up by label: Work, Education, and Pronouns, if configured on the Forem instance.Related Tickets & Documents
DEV-3339 (Jira)
QA Instructions, Screenshots, Recordings
This can be tested by creating a new Forem account with the MLH provider and confirming that profile fields set in MyMLH are used on Forem. MyMLH should prompt the user to enter data for the requested scopes if not already filled.
UI accessibility checklist
N/A
Added/updated tests?
We encourage you to keep the code coverage percentage at 80% and above.
have not been included
[optional] Are there any post deployment tasks we need to perform?
None
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.