Skip to content
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

Mastodon: support "split domain" instances #1638

Open
TankieTanuki opened this issue Dec 29, 2023 · 3 comments
Open

Mastodon: support "split domain" instances #1638

TankieTanuki opened this issue Dec 29, 2023 · 3 comments

Comments

@TankieTanuki
Copy link

TankieTanuki commented Dec 29, 2023

Background

I'm configuring a single-user Mastodon instance with a split local domain (toot.tankietanuki.com) and web domain (tankietanuki.com).

Goal

I would like to implement Bridgy Fed (the cross-post to a Mastodon account variety) and connect the above-mentioned Mastodon account/instance to my personal website under development at tankietanuki.com.

Problem

Entering my web domain on the signup page fails with tankietanuki.com doesn't look like a Mastodon instance.

If I enter the local domain instead, I am able to OAuth into my Mastodon account, but the subsequent page shows this:

Signed in as:
@[email protected]

Client authentication failed due to unknown client, no client authentication
included, or unsupported authentication method.

Diagnosis

I think the problem is related to this issue mentioned in the Mastodon docs:

As with LOCAL_DOMAIN, WEB_DOMAIN cannot be safely changed once set, as this will confuse remote servers that know of your previous settings and may break communication with them or make it unreliable. As the issues lie with remote servers’ understanding of your accounts, re-installing Mastodon from scratch will not fix the issue.

because I entered something weeks ago under a different configuration. It's the only server that I've ever tried to federate with in any way.

It would break my heart if have truly ruined my dream forever. Is there any hope? 🥺

@snarfed
Copy link
Owner

snarfed commented Dec 30, 2023

Interesting! I don't know if Bridgy has handled a Mastodon user with split domain yet, so this will be good to look at. Bridgy classic (non Fed) uses the Mastodon API, not ActivityPub, so split domain may not actually affect it much.

It sounds like Bridgy's OAuth client on your server got wiped at some point, maybe related to your changed settings. Similar to #1602 / mastodon/mastodon#27740 .

I've wiped out your Bridgy user and auth. Feel free to try again!

@TankieTanuki
Copy link
Author

TankieTanuki commented Dec 30, 2023

Thank you so much for manually altering your database on my behalf! I really appreciate it. 😃

That worked! Well, half worked. Now I can successfully login with toot.tankietanuki.com and reach this page:

Mastodon @[email protected]
What's your web site?
http://...
Bridgy uses your web site(s) for post discovery and, if you choose, publishing.

However, I'd like to login as my web domain, tankietanuki.com, and when I try that I get the same error as before.

How should I troubleshoot from here?

I think (but haven't confirmed) that I have the Mastodon domains configured correctly, because browser requests to tankietanuki.com/.well-known/webfinger/ get forwarded to toot.tankietanuki.com/.well-known/webfinger/.

Edit: On the other hand, maybe logging into Bridgy with the toot domain won't be a problem, if people can still publicly find me by the web domain IDK.

@snarfed
Copy link
Owner

snarfed commented Dec 30, 2023

Great! Looking at https://brid.gy/mastodon/@[email protected] , your Mastodon account seems to be working fine so far.

Bridgy doesn't affect how people find or follow you in the fediverse. All it does is backfeed (copy) replies, likes, reposts, etc from Mastodon to your web site, and optionally also lets you cross post from your web site to Mastodon. Those should be unaffected by the fediverse handle shown on https://brid.gy/mastodon/@[email protected] .

Having said that, I can definitely take this as a feature request to support split domains like this!

@snarfed snarfed changed the title Feature request: reset mangled account configurations Mastodon: support "split domain" instances Jan 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants