mastodon / mastodon-android

Official Android app for Mastodon
https://app.joinmastodon.org/android
GNU General Public License v3.0
1.69k stars 261 forks source link

Unable to login instances with LIMITED_FEDERATION_MODE setting #637

Open masthiago opened 1 year ago

masthiago commented 1 year ago

Unable to login instances with the LIMITED_FEDERATION_MODE or AUTHORIZED_FETCH or DISALLOW_UNAUTHENTICATED_API_ACCESS setting.

All the mentioned configurations prevent anonymous queries from being performed on instances that are configured with any or all of them. The application seems to query the instance's API in order to release the button that advances the login area properly.

The return from API 401 This method requires an authenticated user happens both, in the web interface and in the app, but this is expected according to the documentation. What's different is that I can proceed to login area in Mastodon's web interface, but in the app I am unable to proceed.

So, I believe it is necessary to correct this, perhaps with a warning about not being able to query instance data, but the user can choose whether or not to proceed with the login. Other alternative apps allow and work normally with instances configured this way.

image

Tobstr02 commented 1 week ago

Same problem here, when limited_federation is turned on, the app is not able to login into the mastodon instance. Even when using an invite-link or some other schemas of server addresses.