Data mapping not working when updated from settings
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 96
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
Description
Preflight checklist
- I could not find a solution in the existing issues, docs, nor discussions.
- I agree to follow this project's Code of Conduct.
- I have read and am following this repository's Contribution Guidelines.
- This issue affects my Ory Network project.
- I have joined the Ory Community Slack.
- I am signed up to the Ory Security Patch Newsletter.
Describe the bug
When users sign up with a social the metadata gets applied properly. When they link it later the metadata does not get updated properly.
So it happens on register but not on update settings. I think it's because this PR
https://github.com/ory/kratos/pull/2569
Did not address updating social logins from settings.
Reproducing the bug
- Create a user with email
- Link an OIDC method that has a valid mapping in settings
Relevant log output
No response
Relevant configuration
No response
Version
Ory Cloud
On which operating system are you observing this issue?
Ory Network
In which environment are you deploying?
Ory Network
Additional Context
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by comparing the registration flow, where social metadata works, with the settings flow used to link an OIDC method. Read PR #2569 for the related implementation and identify whether the settings update path applies the configured mapping. Done means the reproduction steps produce the same mapped metadata after linking, with regression coverage for both flows.
Written by the indexing model from the issue text.
Assessment
- Domain
- authentication
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100