Use WebFinger domain for user's fqn #936

Closed
z411 wants to merge 2 commits from z411/akkoma:webfinger-fix into develop
First-time contributor

According to the original implementation the WebFinger domain is the correct domain for the user's fqn; it should've been merged along with #927. Also fixes #931.

According to the original implementation the WebFinger domain is the correct domain for the user's fqn; it should've been merged along with #927. Also fixes #931.
z411 added 2 commits 2025-05-27 23:28:32 +00:00
Update tests
Some checks are pending
ci/woodpecker/pr/build-amd64 Pipeline is pending approval
ci/woodpecker/pr/build-arm64 Pipeline is pending approval
ci/woodpecker/pr/docs Pipeline is pending approval
ci/woodpecker/pr/lint Pipeline is pending approval
ci/woodpecker/pr/test/1 Pipeline is pending approval
ci/woodpecker/pr/test/2 Pipeline is pending approval
ci/woodpecker/pull_request_closed/lint Pipeline was successful
ci/woodpecker/pull_request_closed/test/1 Pipeline was successful
ci/woodpecker/pull_request_closed/test/2 Pipeline was successful
ci/woodpecker/pull_request_closed/build-arm64 Pipeline was successful
ci/woodpecker/pull_request_closed/build-amd64 Pipeline was successful
ci/woodpecker/pull_request_closed/docs Pipeline was successful
fc8b98683e
Owner

#927 addressed a Mastodon compat issue, but fqn is an *oma extension and the original implementation is using the API domain as I’ve told you before in the closed issue.

This was added in 60b4654038 for use as a stable identifier for authentication on other services. Changing the identifier now will break all such existing account links for servers with a custom WebFinger domain.
Furthermore, the info can already be obtained via the standard MastoAPI fields accounts::nickname and instance::uri. Unless the client is really *oma-specific this reconstruction from the standard fields must already be supported anyway. Imho it makes no sense to break OAuth sessions for negligible simplicity gain in *oma-exclusive clients.

... although I see Pleroma changed the domain part anyway a while ago alongside a similar Masto-compat fix without discussing the effects on Oauth sessions anywhere: https://git.pleroma.social/pleroma/pleroma/-/merge_requests/3958
This means the field is now inconsistent between *omas, but the OAuth breakages remain an issue, so I’d rather not change it still

#927 addressed a Mastodon compat issue, but `fqn` is an \*oma extension and the original implementation *is* using the API domain as I’ve told you before in the closed issue. This was added in 60b46540380e1467dcc0a93f7bfded84c5e98c64 for use as a stable identifier for authentication on other services. Changing the identifier now *will* break all such existing account links for servers with a custom WebFinger domain. Furthermore, the info can already be obtained via the standard MastoAPI fields `accounts::nickname` and `instance::uri`. Unless the client is really \*oma-specific this reconstruction from the standard fields must already be supported anyway. Imho it makes no sense to break OAuth sessions for negligible simplicity gain in \*oma-exclusive clients. ... although I see Pleroma changed the domain part anyway a while ago alongside a similar Masto-compat fix without discussing the effects on Oauth sessions anywhere: https://git.pleroma.social/pleroma/pleroma/-/merge_requests/3958 This means the field is now inconsistent between \*omas, but the OAuth breakages remain an issue, so I’d rather not change it still
Author
First-time contributor

I see, I'll look into fixing it client-side.

I see, I'll look into fixing it client-side.
z411 closed this pull request 2025-05-28 20:47:25 +00:00
Some checks are pending
ci/woodpecker/pr/build-amd64 Pipeline is pending approval
ci/woodpecker/pr/build-arm64 Pipeline is pending approval
ci/woodpecker/pr/docs Pipeline is pending approval
ci/woodpecker/pr/lint Pipeline is pending approval
ci/woodpecker/pr/test/1 Pipeline is pending approval
ci/woodpecker/pr/test/2 Pipeline is pending approval
ci/woodpecker/pull_request_closed/lint Pipeline was successful
ci/woodpecker/pull_request_closed/test/1 Pipeline was successful
ci/woodpecker/pull_request_closed/test/2 Pipeline was successful
ci/woodpecker/pull_request_closed/build-arm64 Pipeline was successful
ci/woodpecker/pull_request_closed/build-amd64 Pipeline was successful
ci/woodpecker/pull_request_closed/docs Pipeline was successful

Pull request closed

Sign in to join this conversation.
No description provided.