Repository navigation
Link anonymous user with logged in one #250
Replies: 1 comment 1 reply
|
there is no built-in linking, and I don't think it belongs in the library. Moving data from one user to another is your app's storage, which auth never sees. Everything needed is already public, so this can be done on the app side. the catch is that a merge done automatically right after login is unsafe. The email confirmation link and the telegram token work from any browser, so an attacker can send his own confirmation link to a user who is in the middle of linking, that browser gets logged into the attacker's account, and the anon data moves there. The merge needs an explicit confirmation. what I would do:
on the confirmation screen show something an attacker can't fake. The display name is not enough, for email login it comes straight from the the endpoints from steps 2 and 3 should also reject a token passed as |
Uh oh!
There was an error while loading. Please reload this page.
In my project, I'm using multiple providers - anon, email, telegram. What I want is once user logs in as using proper identity provider, I want to move all data that was created as anon user to a user with valid identity. However, I don't see any way to link those identities.
Is it possible to implement with this package? If yes, what design do you suggest? I can try to create a PR for this.
All reactions