-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Return 302 on WebFinger when the user has moved #88
Comments
I'm unsure, I don't know if it's useful to return a 302, or if it's better to still allow to fetch the old person to get the old key. Old relayables are still signed with the old key, so I don't know if we want to resign them all or if we want to add a possibility to get the old key. Also, the current WebFinger implementation would follow a 302, but would then fail, because the So it's maybe better to add something to the WebFinger or hCard response that points to the new user, so we can still fetch the old user/key and also have a way to find the new user. But I agree that there should be something that points from the old user to the new user after the migration. What do you think? |
Maybe it's possible to return |
No, this feels really hacky. Our implementations currently follows automatically a number of redirects. We would need to intercept that, check if the response body contains a valid WebFinger response, and if not, continue follow the redirect. This would even be harder when somebody uses a library to request/parse the WebFinger (for example webfinger or goldfinger). Also our implementation checks if the To me it looks much clearer when we just add a |
RFC 7033 allows to redirect client to another resource.
When user has migrated it makes sense to return 302 when a WF request is made to the old resource and old host.
In order to do that we need to modify webfinger controller. Since we just rely on request to a gem user with
fetch_person_for_webfinger
callback I think we need to return another object instead ofWebFinger
entity in case of account move and just test it in the controller. If the callback returned the "moved object", we reply with302
.Opinions?
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: